Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292761

Usability: Redirect User|Edit page to User|View on submit

$
0
0

Problem/Motivation

Upon saving the user edit page, users are confused that their changes may not be submitted. This is because they see the password confirmation field again, and some fields may be pre-filled by the browser.

Original report by salvis

Ever since I've started running a Drupal site I've received complaints from newbie users struggling with changing their password. Finally, I've been able to identify one of the issues:

Newbie users can easily get confused when they click [Save] and the User|Edit form comes back to them, seemingly begging to enter and confirm the new password again, especially with a theme where the confirmation message is (too) discreet. If the browser is set to fill in the password, then it's even more confusing, because the Password field will be filled in and the Confirm password field will be empty, as if the confirmation somehow failed.

As an easy fix, I propose to redirect to User|View after saving, like we do for nodes, for example. For the normal user there's no point in staying on the User|Edit page.

For an administrator it could occasionally be useful to remain on the User|Edit page while trying out various settings. If we consider this an important feature, then we could make the redirection depend on not having the 'administer users' permission.

This does not require any string changes and if it's accepted, I'd like to see it back-ported to D7 and D6.

Steps to reproduce

Edit your user profile.

Proposed resolution

After a user edits their account redirect to the the view of the account. This will be consistent with what happens when editing other entities.

Remaining tasks

Write a patch.
Add a test.
Review.
Rejoice.

User interface changes

Yes, the user is redirected to the view of their account after editing the account.

API changes

Data model changes

Release notes snippet

Problem/Motivation


Viewing all articles
Browse latest Browse all 292761

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>