ScriptHelperGetScriptUrl Method |
Gets the URL used to retrieve external script file.
Allows to explicitly disable script minification.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax public static string GetScriptUrl(
string url,
bool minify = true
)
Parameters
- url
- Type: SystemString
URL to the script file - minify (Optional)
- Type: SystemBoolean
True if minification should be used, otherwise false
Return Value
Type:
StringURL to script file
See Also