Skip to main content

Module router

Module router 

Source
Expand description

Methods to work with routes.

On the client (csr/hydrate) these helpers query the browser’s window.location. On the server (ssr) they read from the per-request impulse_ui_kit::ssr::RequestUrlCtx context populated by the SSR handler.

Functions§

endpoint
Get endpoint to your backend server.
get_host
Get server’s address and port.
get_path
Get path.
get_protocol
Get server protocol (HTTP/HTTPS: “http:”/“https:”).
redirect
Redirect to any URL.