We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e70ee10 commit 0746e06Copy full SHA for 0746e06
docs/js/procPages/ProcPageManager.js
@@ -916,6 +916,14 @@ export class ProcPageManager {
916
* @description Updates browser history state with new page URL
917
*/
918
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
+ }
927
let urlDisplay = pageName;
928
929
let urlCheck = urlDisplay.split("/")[0];
0 commit comments