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

Fix: progress bar shown on back navigation through pathname check #1633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aegroto
Copy link
Contributor

@aegroto aegroto commented Nov 22, 2024

Description

Progress bar is shown when navigating back in the history. Fixes #1471.

Videos

Current behaviour (master)
The progress bar is not showing in the upper-left corner while navigating back.

master.mp4

Proposed behaviour (this PR)
The progress bar is shown in the upper-left corner while navigating back if the pathname changes.

pr.mp4

Additional Context

The fix is based on checking, in case of shallow routing, if the pathname changes. If so, the progress bar is shown, otherwise it is not. I think this makes sense as we do not want to show progress bar if we are navigating in the same page. If this is not desired, instead, it would make sense to not check the 'shallow' value at all.

Checklist

Are your changes backwards compatible? Please answer below: Yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below: 8, manual testing on both master and PR branch

For frontend changes: Tested on mobile, light and dark mode? Please answer below: Yes

Did you introduce any new environment variables? If so, call them out explicitly here: No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progress bar for back button
1 participant