[wp-trac] [WordPress Trac] #52519: Anchor links not working on password-protected pages (on first click)
WordPress Trac
noreply at wordpress.org
Thu Sep 11 20:02:22 UTC 2025
#52519: Anchor links not working on password-protected pages (on first click)
-------------------------------+----------------------
Reporter: chrslcy | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 5.6.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-------------------------------+----------------------
Changes (by SirLouen):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This is expected. The HTML content, where the anchor is, is locked and not
displayed yet on the DOM. Once you "unlock it" via password, you get a
cookie, that lets you enter the page without having to input the password
more for a couple of days. During this time, the DOM is unlocked, hence
the anchor is visible and this is why, when you go back and forth, or if
you refresh the page, the page navigates to the anchor position.
So in conclusion, this behavior is exactly working as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52519#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list