Fix tab switching when clicking a bookmark.