The WixRouterRequest
object breaks the URL of the incoming router request
into different parameters for easy access.
The URL is broken into:
For premium sites, the URL of the site router request has the following format:
https://www.domain.com/myPrefix/myPath?myQuery=myValue#myHashDesc
https://www.domain.com
myPrefix
myPath
myQuery=myValue
#myHashDesc
Example:
https://domain.com/mammals/elephant?species=african-elephant#LifeSpan
https://domain.com/
mammals
elephant
species=african-elephant
#LifeSpan
For free sites, the URL of the site router request has the following format:
https://user.wixsite.com/mySite/myPrefix/myPath?myQuery=myValue#myHashDesc
https://user.wixsite.com/mySite
myPrefix
myPath
myQuery=myValue
#myHashDesc
Example:
https://user.wixsite.com/zoo/mammals/elephant?species=african-elephant#LifeSpan
https://user.wixsite.com/zoo
mammals
elephant
species=african-elephant
#LifeSpan
Note: The above URLs are for a published site. When previewing your site, you will receive the Editor URL.