Skip to content

Commit bf33ab8

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
fix: add inline redirect script for old github pages domain
1 parent b02cf33 commit bf33ab8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<html lang="en">
33

44
<head>
5+
<script>
6+
if (window.location.hostname === "quercuscode.github.io") {
7+
var path = window.location.pathname.replace('/QuercusViewer', '');
8+
window.location.replace("https://quercusviewer.com" + path + window.location.search + window.location.hash);
9+
}
10+
</script>
511
<meta charset="UTF-8" />
612
<link rel="icon" type="image/png" href="logo/icon-black.png" media="(prefers-color-scheme: light)" />
713
<link rel="icon" type="image/png" href="logo/icon-white.png" media="(prefers-color-scheme: dark)" />

0 commit comments

Comments
 (0)