Browser Back / Forward Button Click changes the URL, but actual navigation does not happen and Previous or Next page does not get loaded.
Describe the bug Browser Back / Forward Button Click changes the URL, but actual navigation does not happen and Previous or Next page does not get loaded. This seems to be the issue only when filtering assets. When you navigate to details page and then click browser back button (not the back UI button in the details page) - the previous page does get loaded. This is not the case whit filter urls.
Environment aem.enablementadobe.com also AEM Version: AEMaaCS 2023.12.14538.20231205T165334Z-231100 Asset Share Commons Version: 3.8.4 both, also local
To Reproduce Steps to reproduce the behavior:
- Go to demo light page for Asset Share ( https://aem.enablementadobe.com/content/asset-share-commons/en/light.html )
- Click on right side filter
TYPE > VIDEO(once clicked - results grid will update. - Click browser BACK button.
- URL changes to previous url (home page) but the previous page does not load (the page content remains the same as when
TYPE > VIDEOfilter was applied). - the same happens when any other filters are applied.
- for example - you can click again on the
TYPE>VIDEOfilter and then add another filterTYPE>IMAGES. - the results grid will be updated with new results.
- click on the Browser back button once and then once more.
- url changes once and then once more - but previous pages do not get loaded - the page with 2 filters applied is shown to the user.
Expected behavior Click on the browser button should change url to previous url AND also load the previous page. The url change should also navigate to that particular page / url.
Screenshots If applicable, add screenshots to help explain your problem.
https://github.com/adobe/asset-share-commons/assets/129842971/cf03268c-4111-4061-b5e0-0ebe4495ea2f
Additional context nothing to report here
This should fix it: https://github.com/adobe/asset-share-commons/pull/1120