Search...
prefix
Returns the router prefix of the router request URL.
Description
Premium sites:
Free sites:
Note: The above URLs are for a published site. When previewing your site, you will receive the Editor URL.
Type:
stringRead Only
Was this helpful?
Get the prefix of the router request's URL
Copy Code
1export function myRouter_Router(request) {23 let prefix = request.prefix; // "mammals"45}