Skip to content

Commit 73a7993

Browse files
committed
Fix window.location.path -- should be pathname
1 parent c8447cd commit 73a7993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// eg "https://facebook.github.io/flux/docs/overview/"
3434
const ORIGINAL_URL = window.location.href;
3535
// eg [ "", "flux", "docs", "overview", "" ]
36-
const PATH_PARTS = window.location.path.split('/');
36+
const PATH_PARTS = window.location.pathname.split('/');
3737
// eg "flux"
3838
const PROJECT = PATH_PARTS[1];
3939
// eg "docs/overview/"

0 commit comments

Comments
 (0)