Functions
The functions of @poltura/theme-sdk/routing.
On this page
import { … } from '@poltura/theme-sdk/routing';redirect
Stops rendering the page and sends the visitor to another one.
redirect(href: string): neverParameters
href: string: Where to send the visitor.
Returns: Never; it throws to the router.
notFound
Stops rendering the page and shows the store's not-found page.
notFound(): neverReturns: Never; it throws to the router.
pageHref
The URL of a site page.
pageHref(page: SitePageRef): stringParameters
page: SitePageRef: The page to link to.
Returns: The page's root-relative URL.