The Router API lets you send site visitors to another page of the site, or to an external link, from your code. Use it when something a site visitor does, such as choosing a service or finishing a form, should take them somewhere new.
With the Router API, you can:
window.open().The Router API navigates to a path you already have. To find the path of a page that an app adds to the site, use appSectionRelativeUrl() in @wix/site-service-url. To open a popup, use @wix/site-service-lightbox.
To link to a page, render a link with a URL from @wix/site-service-url instead. Use navigateTo() when your code decides where to go, such as after a form submits.
https://example.wixsite.com/mysite./News/spring-sale. Here the prefix is /News and the suffix varies per item.To use the API, install the @wix/site-service-router package:
Import any type shown in these docs from @wix/site-service-router/types:
In a React component, resolve the service with the useService hook:
Last updated: 29 October 2026