Skip to main content

set_script_prefix

Set the script prefix for the current thread.

def set_script_prefix(
prefix: string
) - > null

Set the script prefix for the current thread.

Parameters

NameTypeDescription
prefixstringThe URL path prefix to be applied to all generated URLs for the current thread. If the prefix does not end with a trailing slash, one is automatically appended.

Returns

TypeDescription
nullNothing is returned; the prefix is stored in thread-local storage.