Function seed::push_route

source ·
pub fn push_route(path: &str)
Expand description

Push a new state to the window’s history, and append a custom path to the url. This is an improtant client-side routing feature. https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.History.html#method.push_state_with_url https://developer.mozilla.org/en-US/docs/Web/API/History_API