-
Bug
-
Resolution: Unresolved
-
Low
-
1
-
Severity 2 - Major
-
Issue Summary
The wrong contentId is returned from AP.navigator.getLocation
This is reproducible on Data Center: (yes) / (no)
Steps to Reproduce
- Create a Space X with Homepage "A” containing a macro with the following code:
<div id="ui-container"> <h1>AP.navigator.getLocation:</h1> <div class="container"> </div> </div> <script> AP.navigator.getLocation((location) => { document.querySelector('.container').innerHTML = JSON.stringify(location); }) </script>
- Create a Page “B” (a regular page)
- From homepage “A” containing the macro, navigate to “B”
- Refresh the browser when page page "B” is loaded.
- Using the navigation to go to the Homepage A
Expected Results
- The function AP.navigator.getLocation should return the contentId the ID of the Homepage A.
Actual Results
- The function AP.navigator.getLocation returns as contentId the ID of Page B instead of the Homepage A.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available