Search...
baseUrl
Returns the base URL of the router request.
Description
Premium sites:
Free sites:
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 base URL of the router request
Copy Code
1export function myRouter_Router(request) {23 let baseUrl = request.baseUrl;4 // Premium site: "https://domain.com/"5 // Free site: "https://user.wixsite.com/zoo/"67}