Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Redirect URLs w/o hash too
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Nov 17, 2021
1 parent 55e7669 commit af955f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
.replace(`safe-team-${chain}`, 'safe-team') // staging
.replace(`${chain}\.gnosis-safe\.io`, 'gnosis-safe.io') // prod
.replace('#/safes/', `${SHORT_NAMES[chain]}:`) // EIP-3770 prefix
.replace('#/', `${chain}/`); // old-style chain in the path
.replace('#/', `${chain}/`) // old-style chain in the path
.replace(/\/app\/?$/, `/app/${chain}/`); // w/o a hash
window.location.replace(newUrl);
}
}())
Expand Down

0 comments on commit af955f8

Please sign in to comment.