Search.../

url

Returns the full URL of the router request.

Description

Premium sites: Premium site URL

Free sites: Free site URL

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 URL of the router request

Copy Code
1export function myRouter_Router(request) {
2
3 let url = request.url;
4 // Premium site:
5 // "https://domain.com/elephant?species=african-elephant"
6 // Free site:
7 // "https://user.wixsite.com/zoo/elephant?species=african-elephant"
8
9}