Skip to content

Commit

Permalink
Fix url syncing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 9, 2023
1 parent a2da3b5 commit f68cdff
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ export default function useSyncPathWithURL() {
postId: navigatorParams?.postId,
path: undefined,
} );
} else if (
navigatorLocation.path.startsWith( '/page/' ) &&
navigatorParams?.postId
) {
updateUrlParams( {
postType: 'page',
postId: navigatorParams?.postId,
path: undefined,
} );
} else {
updateUrlParams( {
postType: undefined,
Expand Down

0 comments on commit f68cdff

Please sign in to comment.