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

Try to fix progress bar persisting when following a redirect #1168

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

Intrepidd
Copy link
Contributor

@Intrepidd Intrepidd commented Feb 7, 2024

Since cc263b4, it looks like the turbo progress bar will stick around when visiting a page that redirects to another one.

To resolve another issue, the hiding of the progress bar has been moved from visitRequestFinished to visitCompleted.

However, the visitCompleted event is not called on the browser adapter when the visit followed a redirect. This PR challenges this behaviour.

I added a regression test as well.

@Intrepidd Intrepidd force-pushed the fix-progress-bar-on-redirect branch from e9bd02d to c83f8ee Compare February 7, 2024 13:45
@Intrepidd Intrepidd force-pushed the fix-progress-bar-on-redirect branch from c83f8ee to 3ad4134 Compare February 7, 2024 13:46
@afcapel
Copy link
Collaborator

afcapel commented Feb 7, 2024

Looks good to me 👍

@seanpdoyle what do you think?

@seanpdoyle
Copy link
Contributor

@afcapel afcapel merged commit b815594 into hotwired:main Feb 7, 2024
1 check passed
@afcapel
Copy link
Collaborator

afcapel commented Feb 8, 2024

@Intrepidd I've cut 8.0.1 including this change.

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

Successfully merging this pull request may close these issues.

3 participants