Function silkenweb::router::set_url_path
source · pub fn set_url_path(path: impl Into<UrlPath>)
Expand description
Set the path portion of the URL.
The path is the part of the URL after the scheme, host and port. For example, the path of http://example.com/this/is/the/path is “/this/is/the/path”.
set_url_path
will:
- Set the browser URL
- Push it onto the history stack so the forward and back buttons work
- Set the
url_path()
signal
See module-level documentation for an example.