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

Use turbo for the settings page to stop the URL changing #5453

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tomhughes
Copy link
Member

This changes the user settings page to use turbo to fix the problem identified in #5449 (comment) where the URL changes when submitting a settings page with errors.

It also fixes an issue where errors weren't moved from the email to the new_email attribute properly, and simplifies checking if errors are present.

Copy link
Contributor

@nertc nertc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code works properly and solves the issue raised in the comment mentioned in the description.

There is also a different idea to solve the problem (#5449 (comment)), but this PR has other benefits too, like moving errors from email to new_email properly and optimizing count.zero case.

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.

2 participants