pub fn navigate_replace(url: &str)
Expand description
Navigates to the specified url
without adding a new history entry. Instead, this replaces the
current location with the new url
. The url should have the same origin as the app.
This is useful for imperatively navigating to an url when using an anchor tag (<a>
) is not
possible/suitable (e.g. when submitting a form).
§Panics
This function will panic!()
if a Router
has not yet been created.