Navigation Module Examples

>>> Reset URL (after navigating below) <<<

redirect

Should open google.com with get-parameters and a hash in a new window Should open this URL with get-parameters and a hash in a new window, repeated clicks should target the same window Should open this URL with a get and several post-params (may fail due to request method, but post data should be visible in network) Should only change the current hash, without loading anything Should open google.com with get-parameters and a hash in a new window, where the get-parameters are next-parameters that should contain the same url-encoded url

openTab

Should open google.com with get-parameters and a hash in a new tab Should open this URL with a get and several post-params in a new tab (may fail due to request method, but post data should be visible in network)

openWindow

reload

Click the buttons to trigger different kinds of reloads, have a look at your dev tool's network tab to see cache hits next to requests.

changeCurrentUrl

Should replace the current URL without reload, not changing history Should replace the current URL without reload, back navigation being the old URL

onHistoryChange

Click button to register event handlers for history navigation. Clicking the second link in "changeCurrentUrl" and navigating back should then result in console logs stating the old, the new and the current state.

offHistoryChange

Click the buttons to unregister event handlers previously registered in "onHistoryChange". Clicking the first button should remove the output for old and new states during back navigation on the second link in "changeCurrentUrl".
Clicking the second button should remove all handlers and output.