fix(#9732): infinite loop on privacy policy page#9733
fix(#9732): infinite loop on privacy policy page#9733dianabarsan merged 7 commits intomedic:masterfrom
Conversation
There was a problem hiding this comment.
Very cool! Thanks for this :)
I think it would be super useful to add an e2e test for the login privacy policy, including the action of this back button. We have a bunch of e2e tests that cover privacy policies, but none target this page:
Additionally, it will be useful to test this code automatically in our minimum browser (since you're switching to arrow functions) - which will happen automatically if you add an e2e test in that file.
Thanks again! Nice work!
|
Thanks @dianabarsan for your feedback :) - I will make the right adjustments |
…on-issue-privacy-page
…ascal/cht-core into 9732-navigation-issue-privacy-page
2afbb8d to
ccc6dd2
Compare
dianabarsan
left a comment
There was a problem hiding this comment.
Excellent work!!! Thank you for taking the time to add a comprehensive e2e test and delivering code at the highest quality.
Am I free to merge this as is?
|
Thank you so much! 😊 Really appreciate the kind words and the review! Happy to contribute - Yes, you’re absolutely free to merge it as is. <3 |
Fixes Navigation Issue with Back Buttons on Privacy Policy Page This fix addresses the navigation issue observed on the Privacy Policy page where clicking the bottom back button first leads to an infinite loop between the top and bottom of the page. Specifically: When accessing the Privacy Policy from the login page, clicking the bottom back button first would scroll the page to the top. The top back button, when clicked after this, would return the user to the bottom, and vice versa, creating an endless loop. Changes Made: Adjusted the event listeners to ensure that the back button consistently takes the user back to the login page, without causing an infinite loop between the top and bottom of the Privacy Policy page. The top back button now returns to the login page as expected when clicked, regardless of whether the bottom or top button is clicked first. medic#9732
Description
Fixes Navigation Issue with Back Buttons on Privacy Policy Page
This fix addresses the navigation issue observed on the Privacy Policy page where clicking the bottom back button first leads to an infinite loop between the top and bottom of the page. Specifically:
Changes Made:
Related Issue: #9732
Code review checklist
can_view_old_navigationpermission to see the old design.License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.