Skip to content

Commit

Permalink
Remove hash symbol from URL when decoding hash
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasongg committed Jan 20, 2024
1 parent 4ef7210 commit add09d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ window.decodeHash = function decodeHash() {
const hashParams: { [key: string]: string } = {};

const hashIndex = window.location.href.indexOf(HASH_ANCHOR);
const parameterString = hashIndex === -1 ? '' : window.location.href.slice(hashIndex + 1);
const parameterString = hashIndex === -1 ? '' : window.location.href.slice(hashIndex + 1).split('#')[0];

parameterString.split('&')
.forEach((param) => {
Expand Down

0 comments on commit add09d5

Please sign in to comment.