Skip to main content

get_script_prefix

Return the currently active script prefix. Useful for client code that wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner).

def get_script_prefix() - > string

Return the currently active script prefix. Useful for client code that wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner).

Returns

TypeDescription
stringThe currently active URL script prefix, defaulting to a forward slash if no specific prefix is set.