val url: KVar<String>

The URL of the page, relative to the origin - so for the page http://foo/bar?baz#1, the value would be /bar?baz#1.

When this KVar is modified the browser will automatically update the URL in the browser along with any DOM elements based on this url (this will be handled automatically by kweb.routing.route).

If the popstate event fires in the browser, for example if the Back button is pressed, then this URL will also update - potentially triggering re-renders of any DOM elements that depend on the URL.