remove slash

pull/2598/head^2
Aniket-Engg 2 years ago committed by Aniket
parent 10be0cf74a
commit a3a16f0e41
  1. 4
      apps/remix-ide/src/404.html
  2. 4
      libs/remix-lib/src/query-params.ts

@ -7,9 +7,9 @@
<script>
let route = window.location.pathname
if (route.startsWith('/address/0x') && route.length === 51) {
window.location.href = '/#/address=' + route.replace('/address/', '')
window.location.href = '/#address=' + route.replace('/address/', '')
} else if (route.endsWith('.sol')) {
window.location.href = '/#/url=https://github.com' + route
window.location.href = '/#url=https://github.com' + route
} else window.location.href = '/'
</script>
</html>

@ -17,9 +17,7 @@ export class QueryParams {
}
get () {
let qs
if (window.location.hash.startsWith('#/')) qs = window.location.hash.substr(2)
else qs = window.location.hash.substr(1)
const qs = window.location.hash.substr(1)
if (window.location.search.length > 0) {
// use legacy query params instead of hash

Loading…
Cancel
Save