civictechindex / CTI-website-frontend

Join a worldwide movement to catalog 
every open source 
civic tech project.
https://civictechindex.org
MIT License
31 stars 29 forks source link

Back button incorrectly redirecting #1246

Closed smsada closed 2 years ago

smsada commented 2 years ago

Overview

After clicking the organization link, the back button needs to return to the tag generator page not stay on the organization's page.

Description

Recreate the issue Go to the Tag Generator Wizard Click on Organization as seen in this picture ![image](https://user-images.githubusercontent.com/38507899/168705413-b55bf17f-dab9-4aff-b873-a204b3b4de15.png) Notice the link is ![image](https://user-images.githubusercontent.com/38507899/168705440-fd0b3618-b884-4de2-ad13-f777c50b119c.png) When pressing back, the link becomes ![image](https://user-images.githubusercontent.com/38507899/168705475-537e41ed-1b2a-4c1f-81ce-a4a51d470e10.png) This leaves the user on the CTI page instead of back on the Tag Generator Wizard

Action Items

Resources/Instructions

smsada commented 2 years ago

Issue is a result of the URL storing the state of the page

bruceplai commented 2 years ago

@smsada Back browsing won't be 100% accurate due to the way URLs with query params are generated in react, but in general you will get back to your original page when backing out of the organizations page.