Search.../

path

Returns the path of the router request URL.

Description

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.

Type:

Array<string>Read Only

Was this helpful?

Get the path of the router request's URL

Copy Code
1export function myRouter_Router(request) {
2
3 let path = request.path; // ["elephant"]
4
5}