Skip to content

Commit

Permalink
Fixing multi file URL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abchatra committed Nov 3, 2024
1 parent 4014649 commit ec449ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webapp/public/multi.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@
var hashLeft = ""
var hashRight = ""
var route = (window.location.hash || "#");
// Split using :|: as well as :%7C:
var parts = route.replace(/^#/, '').split(':|:', 2);
if (parts.length == 1) {
//As some link out conver :|: to :%7C:
parts = route.replace(/^#/, '').split(':%7C:', 2);
}
updateSrc(left, parts[0]);
updateSrc(right, parts[1]);
window.history.replaceState('', '', '#')
Expand Down

0 comments on commit ec449ee

Please sign in to comment.