Refactor page jump and fix issues with disabling page links.