ContextAwareUrlNormalizer Class
- Namespace
- Kampute.DocToolkit.Routing
- Assembly
- Kampute.DocToolkit.dll
Definition
Normalizes relative URLs based on the current document context to ensure proper navigation.
public sealed class ContextAwareUrlNormalizer : DocumentUrlContextManager- Inheritance
- object
- DocumentUrlContextManager
- ContextAwareUrlNormalizer
Remarks
Thread Safety
All public members of the type are guaranteed to be thread-safe.
Constructors
| ContextAwareUrlNormalizer() | Initializes a new instance of the ContextAwareUrlNormalizer class. |
Methods
| CreateScope(string, IDocumentModel) | Creates a new scope for the specified directory path and document model. |

For example, if a document at
api/namespace/class.htmlreferences another document atapi/other-namespace/interface.html, this normalizer ensures the relative path is correctly calculated as../other-namespace/interface.html. In this case, the base URL of the documentation site relative to the current document is../../.