public static class UrlHelper

assembly RefDocGen
namespace RefDocGen.TemplateProcessors.Shared.TemplateTools
Base type:  object

Helper class for URL manipulation, specifically for generating relative URIs.

Methods

public static string GetRelativeUrl(string filePath, int nestingLevel) #
Gets a relative URI based on the provided file name and the nesting level of the current page. The nesting level determines how many directory levels to go up in the URL before accessing the file.
Parameters
string filePath
Path to the file to access, which will be included at the end of the URL. The path should be relative to the output directory.
int nestingLevel
The number of directory levels to go up from the current page.
Returns
string
A relative URL (as a string) pointing to the specified file.