hackforla / hackforla/tdm-calculator
Bug: Browser Back button returns user to Projects tab instead of Deleted Projects tab
- Dominant language
- JavaScript
- Stars
- 68
- Forks
- 47
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 25
Description
#### Describe the bug
When a user opens a Deleted TDM Plan from the Deleted TDM Plam tab and then clicks the browser Back button, they are returned to the default TDM Plan tab instead of the Deleted TDM Plan tab they came from.
Note: The screenshots below are from when the page was called My Projects, and now its called My TDM Plans
#### Steps to Reproduce
1. Go to My TDM Plans
2. Open the Deleted TDM Plan tab.
3. Open any deleted TDM Plan (draft or snapshot)
4. Click the browser Back button.
#### Actual Result
- User is redirected to the default TDM Plan tab.
Go to TDM Plan
Got to Deleted TDM Plans
Open any deleted TDM Plan
View once you have clicked on Back button
#### Expected Result
- User should return to the Deleted TDM Plans tab.
#### Device Configuration
- Device: Desktop / Laptop
- OS version: Windows 11
- Browser: Chrome
- Browser version:
#### Action Items
- [ ] Fix bug.
- [ ] Review with development lead.
- [ ] Review with product, development, and research teams. Update if needed based on feedback.
- [ ] Once finalized, add a slide to the staging deck (see resources)
- [ ] Get Stakeholder sign-off via the stakeholder meeting slide deck.
### Resources/Instructions
#### Staging and Release decks
- [Staging Deck](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/)
- [Staging slide, 3286](https://docs.google.com/presentation/d/1crZ3IxqA4hAu3qzD7ns93Ieuqjwh6wyEtuX_46cP-fg/edit?slide=id.g3eb8ff4ade6_15_0#slide=id.g3eb8ff4ade6_15_0)
- Release Deck
- [2025-MM-DD Release deck, slide ISSUE NUMBER]
Contributor guide
Research direction
Reproduce the navigation flow in the My TDM Plans interface, starting from the Deleted TDM Plans tab and opening a deleted draft or snapshot. Trace the route and tab state used by the browser Back action; done means Back returns to the Deleted TDM Plans tab, with a regression test covering the flow if the existing frontend test structure supports it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100