Click or drag to resize
HTMLHelperEnsureURLPrefixes Method
Ensures that all local URLs have given prefix

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static string EnsureURLPrefixes(
	string mHtml,
	string applicationPath,
	string urlPrefix,
	URLHelperPathModifierHandler urlModifier = null,
	bool decorateHrefAttributes = true,
	HTMLHelperDecoratePathArbiterHandler decoratePathArbiter = null
)

Parameters

mHtml
Type: SystemString
HTML code
applicationPath
Type: SystemString
Application path
urlPrefix
Type: SystemString
URL prefix to ensure
urlModifier (Optional)
Type: CMS.HelpersURLHelperPathModifierHandler
Callback for URL modification, optional
decorateHrefAttributes (Optional)
Type: SystemBoolean
Indicates whether 'href' attributes should be decorated with the virtual context prefix.
decoratePathArbiter (Optional)
Type: CMS.HelpersHTMLHelperDecoratePathArbiterHandler
The arbiter which decides whether the given path should be decorated with a virtual context prefix or kept as is.

Return Value

Type: String
See Also