We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0281260 commit 9a33593Copy full SHA for 9a33593
1 file changed
404.html
@@ -7,7 +7,8 @@
7
<script>
8
(function () {
9
var full = window.location.pathname + window.location.search + window.location.hash;
10
- var base = window.location.pathname.replace(/\/[^\/]*$/, '/');
+ var parts = window.location.pathname.split('/').filter(Boolean);
11
+ var base = parts[0] === 'StreamIt' ? '/StreamIt/' : '/';
12
var relative = full.startsWith(base) ? '/' + full.slice(base.length) : full;
13
var target = base + 'index.html?route=' + encodeURIComponent(relative);
14
window.location.replace(target);
0 commit comments