URLHelper CheckPrefix Method Kentico 8.0 API Reference
Checks the URL prefix. If the prefix is present, returns true and removes the prefix from the URL if removePrefix is true.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

path
Type: OnlineSystem String 
Path to check
prefix
Type: OnlineSystem String
Prefix to check
removePrefix
Type: OnlineSystem Boolean
Remove the prefix if matches

Return Value

Type: OnlineBoolean
See Also