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
| Name | Type | Description |
|---|---|---|
| prefix | string | The 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
| Type | Description |
|---|---|
null | Nothing is returned; the prefix is stored in thread-local storage. |