Skip to content

Commit 2c5569a

Browse files
committed
added redirect of old archive-explorer page to new one
1 parent 63215d1 commit 2c5569a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@
156156
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
157157
<script src="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
158158

159+
<script>
160+
window.addEventListener('hashchange', function() {
161+
if (window.location.hash === '#/archive_explorer') {
162+
window.location.href = 'https://server.poseidon-adna.org/explorer';
163+
console.log('redirecting to archive explorer...');
164+
}
165+
});
166+
if (window.location.hash === '#/archive_explorer') {
167+
window.location.href = 'https://server.poseidon-adna.org/explorer';
168+
console.log('redirecting to archive explorer...');
169+
}
170+
</script>
171+
159172
<style>
160173
:root {
161174
/* this is relative to the path of the docsify-themeable stylesheet, which is now hosted locally */

0 commit comments

Comments
 (0)