Skip to content

currentBrowserRoute

currentBrowserRoute(): string | null

The browser’s current route — window.location.pathname, normalized. null outside a browser (SSR, server runtimes, workers without location).

string | null