Skip to content

Commit

Permalink
correct hash check
Browse files Browse the repository at this point in the history
  • Loading branch information
MAX-786 committed Aug 15, 2024
1 parent 7db67c3 commit 51600dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hydra-vue-f7/src/js/hydra.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Bridge {
isRoutingWithHash:
newUrl.hash !== this.currentUrl?.hash &&
newUrl.hash !== '' &&
newUrl.hash.startsWith('#!'),
newUrl.hash.startsWith('#/!'),
},
this.adminOrigin,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/volto-hydra/src/components/Iframe/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Iframe = (props) => {
// Update adminUI URL with the new URL
const hash = givenUrlObject.hash;
if (isRoutingWithHash) {
const pathname = hash.replace('#!', '');
const pathname = hash.replace('#/!', '');
history.push(`${pathname === '' ? '/' : pathname}`);
} else {
history.push(
Expand Down

0 comments on commit 51600dc

Please sign in to comment.