prefix


prefixstringRead-only

Returns the router prefix of the router request URL.

Premium sites: Premium site prefix

Free sites: Free site prefix

Note: The above URLs are for a published site. When previewing your site, you will receive the Editor URL.

Get the prefix of the router request's URL
JavaScript
export function myRouter_Router(request) { let prefix = request.prefix; // "mammals" }
Did this help?