Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
Severity 3 - Minor
-
Description
Issue Summary
When a user navigates from some existing browser history state to initial (by clicking an app link in the navigation panel) `AP.history.popState` doesn't trigger
Steps to Reproduce
- Prepare an app with the Custom Content module:
- register a type on a space level (`supportedContainerTypes: ['space']`)
- add listViewComponent property and refer to `generalPages` module
- Implement `generalPage` module
- add usage of `AP.history` module
- add a new state to history with `AP.history.pushState("page1");`
- add a listener when a state is changed with `AP.history.popState`
- Install the app on some instance. The link should appear on the navigation panel
- Click on a link on the navigation panel
- Ensure that a state is changed to "page1" (the url should contain `#!page1` location hash)
- Click on a link on the navigation panel again
Expected Results
`AP.history.popState` should be invoked
Actual Results
History is updated, `AP.history.popState` is not invoked
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available