ContextAwareUrlTransformer.TryTransformUrl Method
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Attempts to transform a URL string into an absolute or document-relative URL.
public virtual bool TryTransformUrl(string urlString, [NotNullWhen(true)] out Uri transformedUrl)Parameters
urlStringstring- The URL string to transform.
transformedUrlUri- When this method returns, contains the transformed URL if the method returns
true; otherwise,null. This parameter is passed uninitialized.

- Topic references are resolved to their corresponding URLs.
- File references in topics are resolved to either absolute or document-relative URLs.
- URLs relative to the root of the documentation site are resolved to either absolute or document-relative URLs.
The method will not transform the provided URL when it matches any of the following: