Detect the page anchor and render the right page accordingly when navigating back from opening a file.