Edit this page
modifyUrl()
The modifyUrl()
function allows you to manipulate URLs.
It's usually used for extracting the locale from URLs, see Guides > Internationalization (i18n).
pageContext
Page
route
Head
Layout
Config FilesError Page+client.js
RoutingFilesystem RoutingRoute StringRoute FunctionRouting PrecedenceHooksdata()
guard()
onBeforeRender()
onHydrationEnd()
onPageTransitionStart()
onPageTransitionEnd()
onBeforePrerenderStart()
onPrerenderStart()
... moreUtils (server- & client-side)useData()
usePageContext()
useConfig()
throw redirect()
throw render()
clientOnly()
modifyUrl()
See alsoUtils (client-side)navigate()
reload()
prefetch()
Utils (server-side)renderPage()
escapeInject
injectFilter()
prerender()
Settingstitle
description
image
viewport
htmlAttributes
bodyAttributes
ssr
stream
prerender
redirects
keepScrollPosition
prefetchStaticAssets
hooksTimeout
passToClient
clientRouting
meta
... morepageContext
Page
route
Head
Layout
Config FilesError Page+client.js
RoutingFilesystem RoutingRoute StringRoute FunctionRouting PrecedenceHooksdata()
guard()
onBeforeRender()
onHydrationEnd()
onPageTransitionStart()
onPageTransitionEnd()
onBeforePrerenderStart()
onPrerenderStart()
... moreUtils (server- & client-side)useData()
usePageContext()
useConfig()
throw redirect()
throw render()
clientOnly()
modifyUrl()
See alsoUtils (client-side)navigate()
reload()
prefetch()
Utils (server-side)renderPage()
escapeInject
injectFilter()
prerender()
Settingstitle
description
image
viewport
htmlAttributes
bodyAttributes
ssr
stream
prerender
redirects
keepScrollPosition
prefetchStaticAssets
hooksTimeout
passToClient
clientRouting
meta
... moremodifyUrl()
The modifyUrl()
function allows you to manipulate URLs.
It's usually used for extracting the locale from URLs, see Guides > Internationalization (i18n).