You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When saving a post, REQUEST_POST_UPDATE_SUCCESS does its job and at the end updates the browser history, appending the post ID to the URL in the browser's address bar.
However, it currently doesn't take into account URL fragment identifiers such as the ones appended to the URL when using the "skip links", leading to unexpected behaviors.
The easiest way to reproduce is:
go in the Gutenberg "New Post" page
using the keyboard, tab to make the "Skip to main content" link appear
press Enter to activate the skip link
the initial URL parameter changes from ?page=gutenberg to ?page=gutenberg#wpbody-content
write something in the post and save
in the address bar there's now something like ?page=gutenberg%23wpbody-content&post_id=2395, notice the hash # has been URL encoded and the URL fragment identifier is now part of the page parameter name
refresh the page
since the page gutenberg%23wpbody-content doesn't exist, all you get is:
Worth noting this happens also with other fragment identifiers ("skip to toolbar" or any other one that plugins might use).
The text was updated successfully, but these errors were encountered:
When saving a post,
REQUEST_POST_UPDATE_SUCCESS
does its job and at the end updates the browser history, appending the post ID to the URL in the browser's address bar.However, it currently doesn't take into account URL fragment identifiers such as the ones appended to the URL when using the "skip links", leading to unexpected behaviors.
The easiest way to reproduce is:
?page=gutenberg
to?page=gutenberg#wpbody-content
?page=gutenberg%23wpbody-content&post_id=2395
, notice the hash#
has been URL encoded and the URL fragment identifier is now part of the page parameter namegutenberg%23wpbody-content
doesn't exist, all you get is:Worth noting this happens also with other fragment identifiers ("skip to toolbar" or any other one that plugins might use).
The text was updated successfully, but these errors were encountered: