Search.../

baseUrl

Returns the base URL of the router request.

Description

Premium sites: Premium site baseUrl

Free sites: Free site baseUrl

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) {
2
3 let baseUrl = request.baseUrl;
4 // Premium site: "https://domain.com/"
5 // Free site: "https://user.wixsite.com/zoo/"
6
7}