Skip to content

Commit b795d09

Browse files
committed
Change the fallback url to an empty string, and don't perform the redirect if newUrl is an empty string
1 parent ee6cdd5 commit b795d09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

404.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<html>
1010
<head>
1111
<script type="text/javascript" charset="utf-8">
12-
// const FALLBACK_URL = 'https://opensource.fb.com';
12+
const FALLBACK_URL = '';
1313
const REDIRECT_STYLE = {
1414
// Redirect completely, appending the path to the newly specified location.
1515
// This is useful for project renames or moving to a different org.
@@ -62,7 +62,9 @@
6262
newUrl = FALLBACK_URL;
6363
}
6464

65-
window.location.href = newUrl;
65+
if (newUrl !== '') {
66+
window.location.href = newUrl;
67+
}
6668
}
6769

6870
</script>

0 commit comments

Comments
 (0)