Skip to content

Commit 0746e06

Browse files
committed
Git pages mismatch with local dev area
You can request `/` where local dev defaults that to `index.htm` There are history pushes, pushing nothing. Temporary patch
1 parent e70ee10 commit 0746e06

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/js/procPages/ProcPageManager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,14 @@ export class ProcPageManager {
916916
* @description Updates browser history state with new page URL
917917
*/
918918
shiftHistoryState( pageName ){
919+
// TODO : Check for null page and re-route them to Init.htm before `shiftHistoryState()` is called.
920+
// `pageName` can now be 'undefined' from re-directing URLs after initial load.
921+
// It shouldn't.
922+
// Currently `domain/index.htm` != `domain/` when rerouting in `procPages`
923+
// vv This If is a temporary fix for undefined pageNames
924+
if(!pageName || pageName == "" ){
925+
return;
926+
}
919927
let urlDisplay = pageName;
920928

921929
let urlCheck = urlDisplay.split("/")[0];

0 commit comments

Comments
 (0)