Class UrlHelper
- Namespace
- Dynamicweb.Frontend.UrlHandling
- Assembly
- Dynamicweb.dll
public class UrlHelper
- Inheritance
-
UrlHelper
- Inherited Members
Methods
CheckResetNeeded()
public static void CheckResetNeeded()
CheckResetNeeded(bool)
Rebuilds the URL index if a change was flagged (and the debounce window has elapsed).
public static void CheckResetNeeded(bool rebuildSynchronously)
Parameters
rebuildSynchronouslyboolWhen
true, the rebuild runs synchronously so the caller observes a fully up-to-date index on return (read-your-writes) - used by the admin API, where blocking is acceptable. Whenfalse(the frontend path), the rebuild is dispatched to a background thread and this returns immediately.
CreateNode(string, string, string, UrlNode?)
public static UrlNode CreateNode(string name, string queryStringParameter, string queryStringValue, UrlNode? parent)
Parameters
Returns
CreateNode(string, string, string, UrlNode?, bool)
public static UrlNode CreateNode(string name, string queryStringParameter, string queryStringValue, UrlNode? parent, bool ignoreParentQueryString)
Parameters
namestringqueryStringParameterstringqueryStringValuestringparentUrlNodeignoreParentQueryStringbool
Returns
CreateNodeExact(string, string, UrlNode)
public static UrlNode CreateNodeExact(string exactUrl, string fullQueryString, UrlNode parent)
Parameters
Returns
CreateQueryString(string, string)
public static string CreateQueryString(string parameter, string value)
Parameters
Returns
NormalizeString(string)
public static string NormalizeString(string text)
Parameters
textstring
Returns
RemoveDiacritics(string)
public static string RemoveDiacritics(string text)
Parameters
textstring
Returns
RemoveDiacritics2(string)
public static string RemoveDiacritics2(string text)
Parameters
textstring
Returns
ResetPageIndex()
public static void ResetPageIndex()
ResetPageIndex(string)
public static void ResetPageIndex(string fromWhere)
Parameters
fromWherestring
SanitizeUrl(string, bool)
public static string SanitizeUrl(string urlPart, bool replaceDash)
Parameters
Returns
SetResetNeeded()
public static void SetResetNeeded()