Use the two buttons below to test normal transitions.
history.pushState history.goBack
Close the tab to test beforeunload behavior.
beforeunload