Try to go back in history to the first entry that matches the given target. If none is found, the given state will replace the current page. This is useful for "cancel" or "close" actions that should return to the previous page if possible, but create a new page if not (for instance when arriving at the current page through a direct link).
Navigate to a new URL by pushing a new history entry.
Restore and store the vertical and horizontal scroll position for the parent element to the page state.
Modify the current route by merging target
into it (using merge), pushing a new history entry.
Configure logging on route changes.
Navigate up in the path hierarchy, by going back to the first history entry that has a shorter path than the current one. If there's none, we just shorten the current path.
The class for the global
route
object.