Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Going Back in History #340

Open
jeafreezy opened this issue Feb 22, 2025 · 0 comments
Open

[BUG] Going Back in History #340

jeafreezy opened this issue Feb 22, 2025 · 0 comments
Assignees

Comments

@jeafreezy
Copy link
Collaborator

Describe the bug

If a user is sent a link to the start mapping page directly, and authenticates on that page, then tries to go back again or click on 'stop mapping,' it won't work because there is no browser history; rather, the page reloads. But if clicked the second time, then they are returned back to the model card/details page.

To Reproduce

Steps to reproduce the behavior:

  1. Ensure you're logged out.
  2. Go to https://fair.hotosm.org/start-mapping/75.
  3. Click on login.
  4. Click on 'stop mapping.'
  5. See error.

Expected behavior

In this scenario, the user should return to the model card/model details page immediately.

And generally, on other pages, a fallback could be returning the users back a level up the current route, or the landing page rather than the page reloading.

Screenshots

Screen.Recording.2025-02-22.at.16.16.18.mov

Desktop:

  • Browser Chrome.
@jeafreezy jeafreezy added the bug Something isn't working label Feb 22, 2025
@jeafreezy jeafreezy self-assigned this Feb 22, 2025
@jeafreezy jeafreezy changed the title Go Back Going Back in History Feb 22, 2025
@jeafreezy jeafreezy changed the title Going Back in History [BUG] Going Back in History Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant