Table of Contents

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

rebuildSynchronously bool

When 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. When false (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

name string
queryStringParameter string
queryStringValue string
parent UrlNode

Returns

UrlNode

CreateNode(string, string, string, UrlNode?, bool)

public static UrlNode CreateNode(string name, string queryStringParameter, string queryStringValue, UrlNode? parent, bool ignoreParentQueryString)

Parameters

name string
queryStringParameter string
queryStringValue string
parent UrlNode
ignoreParentQueryString bool

Returns

UrlNode

CreateNodeExact(string, string, UrlNode)

public static UrlNode CreateNodeExact(string exactUrl, string fullQueryString, UrlNode parent)

Parameters

exactUrl string
fullQueryString string
parent UrlNode

Returns

UrlNode

CreateQueryString(string, string)

public static string CreateQueryString(string parameter, string value)

Parameters

parameter string
value string

Returns

string

NormalizeString(string)

public static string NormalizeString(string text)

Parameters

text string

Returns

string

RemoveDiacritics(string)

public static string RemoveDiacritics(string text)

Parameters

text string

Returns

string

RemoveDiacritics2(string)

public static string RemoveDiacritics2(string text)

Parameters

text string

Returns

string

ResetPageIndex()

public static void ResetPageIndex()

ResetPageIndex(string)

public static void ResetPageIndex(string fromWhere)

Parameters

fromWhere string

SanitizeUrl(string, bool)

public static string SanitizeUrl(string urlPart, bool replaceDash)

Parameters

urlPart string
replaceDash bool

Returns

string

SetResetNeeded()

public static void SetResetNeeded()
To top