Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 21130d1

Browse files
committed
Don't redirect all anchors to https://gitpod.io/#, only what looks like URLs
1 parent b64c7bc commit 21130d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function HTML(props) {
1414
<script
1515
dangerouslySetInnerHTML={{
1616
__html: `
17-
if (location.pathname.length <= 1 && location.hash.length > 0) {
17+
if (location.pathname.length <= 1 && location.hash.indexOf("https://") > -1) {
1818
window.location.replace("https://gitpod.io/" + window.location.hash);
1919
}
2020
`,

0 commit comments

Comments
 (0)