Skip to content

Commit

Permalink
Fix back button
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Jun 22, 2024
1 parent 811b615 commit ba56445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/signalizejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signalizejs",
"version": "0.1.1",
"version": "0.1.3",
"description": "A client-side JavaScript framework designed for swift web development with minimum JavaScript.",
"keywords": [
"signalize",
Expand Down
3 changes: 2 additions & 1 deletion packages/signalizejs/src/modules/spa.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export default async ({ params, resolve, root }, config) => {
throw new Error('Error during navigation.');
}

const onlyHashChanged = url.pathname === getCurrentLocation().pathname;
const currentLocation = getCurrentLocation();
const onlyHashChanged = url.pathname === currentLocation.pathname && url.hash !== currentLocation.hash;
const shouldTriggerNavigation = !onlyHashChanged;
const urlString = url.toString();

Expand Down

0 comments on commit ba56445

Please sign in to comment.