Skip to content

Commit

Permalink
fix(utils): decodeURIComponent the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesDev committed Jul 28, 2023
1 parent f0b00a8 commit 1ed1101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const decodeHashState = (v: string): HashState => {
};

export const getDefaultHashState = () => {
const currentHash = window.location.hash.substr(1);
const currentHash = decodeURIComponent(window.location.hash.substr(1));

if (currentHash) {
return decodeHashState(currentHash) as HashState;
Expand Down

0 comments on commit 1ed1101

Please sign in to comment.