404 updated

pull/2598/head^2
Aniket-Engg 2 years ago committed by Aniket
parent 3394121886
commit 4f2170c9fd
  1. 9
      apps/remix-ide/src/404.html

@ -1,10 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Test Remix</title>
<title></title>
</head>
<body></body>
<script>
window.location.href = '/address/#' + window.location.pathname.replace('/address', '')
let route = window.location.pathname
if (route.startsWith('/address/0x') && route.length === 51) {
window.location.href = '/#/#address=' + route.replace('/address/', '')
} else if (route.endsWith('.sol')) {
window.location.href = '/#/#url=https://github.com' + route
} else window.location.href = '/'
</script>
</html>
Loading…
Cancel
Save