Preserve active tab across page loads by saving the href of the active tab to localStorage