Skip to content

Commit

Permalink
refine check for edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Dec 18, 2023
1 parent c5db0a8 commit ec4698f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/browser-url/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class BrowserURL extends Component {
* @param {number} postId Post ID for which to generate post editor URL.
*/
setBrowserURL( postId ) {
if ( getQueryArg( window.location.href, 'editMode' ) ) {
if ( getQueryArg( window.location.href, 'editMode' ) === 'focused' ) {
return;
}
window.history.replaceState(
Expand Down

0 comments on commit ec4698f

Please sign in to comment.