Closed boonebgorges closed 9 months ago
The issue here is the #top
anchor. It's not clear from the commit logs, but it appears that this was added to ensure that when you navigate using the tabs, the window is brought back to the top. (Without #top
, the scroll position puts the tabs at the very top of the window, so you're missing the top part of the screen.) So, I understand the motivation, but I suggest that using multiple URL hashes is not a semantic solution. Instead, let's add some JavaScript to keep track of the scroll location before and after the hash is set.
Related: #1168
Linking to internal Tools or Preferences tabs does not work. There seems to be a few problems:
/wp-admin/admin.php?page=pf-options#top#user
wp-admin/admin.php?page=pf-options#site
, it always loads#top#user
So you can't deep-link into these tabs.