path


pathArray<string>Read-only

Returns the path of the router request URL.

Premium sites: Premium site path

Free sites: Free site path

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

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