Search.../

Introduction

The WixRouterRequest object breaks the URL of the incoming router request into different parameters for easy access.

Premium Sites

Given the premium site router request: https://domain.com/animals/mammals/elephant?species=african-elephant#desc, the URL is broken down as shown in the table below:

url

baseUrl

protocol

host

prefix

path

query

hash

https

://

domain.com

/animals

/mammals/elephant

?

species=african-elephant

#

desc

Free Site

Given the free site URL: https://user.wixsite.com/zoo/animals/mammals/elephant?species=african-elephant#desc, the URL is broken down as shown in the table below:

url

baseUrl

protocol

host

site

prefix

path

query

hash

https

://

user.wixsite.com

/

zoo

/animals

/mammals/elephant

?

species=african-elephant

#

desc

Note that the above URLs are for a published site. When previewing your site, you will receive the Editor URL.

Was this helpful?