-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$1000] Web - Back button after page reload does not work properly on profile page #22887
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
This is definitely reproducible, and I can't find a dupe. i don't see this issue if I use my browser's back button though 🤷♀️ |
@adelekennedy I agree with your observation that the browser's back button doesn't reproduce the issue. This detail helps highlight the discrepancy between the app's and browser's back button behaviors. |
ProposalPlease re-state the problem that we are trying to solve in this issue.In the current application, after reloading the What is the root cause of that problem?The root cause of this issue is the limited flexibility of the back navigation logic in the The existing back navigation code is as follows:
This issue arises when the app is reloaded on the What changes do you think we should make in order to solve the problem?To solve this problem, we can introduce a new property fallbackRoute that can be passed to the The back navigation code would be updated as follows:
In the
Original code:
This change ensures that if a user is on the Please find the attached video demonstrating the proposed solution. 1.New.Expensify.-.Google.Chrome.2023-07-15.02-03-09.mp4 |
@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01ebbd66fe602e6683 |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Moving this to external |
ProposalPlease re-state the problem that we are trying to solve in this issue.After reloading the page, pressing the back button goes back to home What is the root cause of that problem?When we reload the page, the App does not load the previous navigation state of the app so there's no route to go back to, so it defaults to the What changes do you think we should make in order to solve the problem?We need to:
This issue happens across the app so we can't just apply the fix in this one place, we need to do the persisted approach above to make sure reloading works well across the app. What alternative solutions did you explore? (Optional)We can restructure the navigation route structure so that when the profile page (that was opened from chat participants page) is loaded, it will automatically load the route before that. But this will only fix it in this specific case. |
I think there was a similar issue #22041 (using the save button), marked as not a bug |
@adelekennedy Looks like a dupe of #22041 (same root cause). Let's close this. |
@s77rt It's same root cause but I think this one clearly is buggy since it's inconsistent with the browser back button. Also it's not clearly mentioned in the other ticket to why it was closed. |
Can we take a look at #23036 as well? should we consolidate these? |
@greg-schroeder Yes but the previous reported issue was closed. I'm not sure if we should start fixing those issues or not. |
Not overdue. This is a dupe. We should probably close this one and reopen the first one (if needed). |
Okay then. 👍 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
After reloading the page, pressing the back button still goes back to the details page
Actual Result:
After reloading the page, pressing the back button goes back to home
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.40-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-07-13.at.23.57.35.mov
Recording.3619.mp4
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689267806742509
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: