url


urlstringRead-only

Returns the full URL of the router request.

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.

Get the URL of the router request
JavaScript
export function myRouter_Router(request) { let url = request.url; // Premium site: // "https://domain.com/elephant?species=african-elephant" // Free site: // "https://user.wixsite.com/zoo/elephant?species=african-elephant" }
Did this help?