Skip to content

Commit

Permalink
Merge pull request #7 from Caleydo/676-vistories-links-no-longer-work
Browse files Browse the repository at this point in the history
Redirect old session links
  • Loading branch information
keckelt authored Apr 21, 2022
2 parents f476545 + c87d224 commit 5568b32
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 5568b32

Please sign in to comment.