Skip to content

Commit

Permalink
redirect old session links
Browse files Browse the repository at this point in the history
  • Loading branch information
keckelt committed Apr 21, 2022
1 parent f476545 commit c87d224
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/welcome.template.ejs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/welcome.template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
<script src="https://cdn.polyfill.io/v3/polyfill.min.js"></script>
</head>
<body>
<script>
// maintain compatibility with old session links (e.g., bookmarks, vistories)
// redirect to app subdirectory if URL hash contains a CLUE session
if(location.hash.includes('clue_graph') || location.hash.includes('clue_state')) {
location.replace(location.href.replace('#', 'app/#'));
}
</script>
<div id="welcome">
<div id="loading-welcome">Loading &hellip;</div>
</div>
Expand Down

0 comments on commit c87d224

Please sign in to comment.