It's often experienced on most sites using additional information fill up forms in their user profiles that, when you hit submit for a form on a tab(secondary. say: Personal information), you are taken to your profile page, and you wanted to edit information in another tab(secondary) too! To do this, one has to move back into edit profile tab and do the next and once again! Somehow I overcome this by putting the argument in urls, because it's known that it'll work so.. But not to general users. Isn't this undesired and unexpected? User should be sent back to the same page(same tab) when submit is hit.

Also, I'm in need of such behavior of user edit form for a module that adds single value per submit is hit(where you can have multiple values, by uploading the data each time, as the new field pops in). Yes there are ways but this is just a use which is eased if this issue is addressed.

I'll hook a patch if others have any say for this..

Comments

webchick’s picture

Oh yes, please. This is infinitely annoying.

Gurpartap Singh’s picture

Status: Active » Needs review
StatusFileSize
new558 bytes

it doesn't allow to upload .patch files too now?

Gurpartap Singh’s picture

RTBC?

Gurpartap Singh’s picture

Title: Do not redirect to ?q=user/123 after editing profile. » Don't redirect to 'my account' after editing profile

bump, needs re-roll? or it's just a one liner..?

Tobias Maier’s picture

Status: Needs review » Reviewed & tested by the community

you're right, the current behavior is really annoying.

The patch is definitely a one liner.

I did not test the patch on a test installation, but looked at the patch.
-->RTBC

Gurpartap Singh’s picture

StatusFileSize
new543 bytes

Re-rolled for new Forms API.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)
anders.fajerson’s picture

Version: 6.x-dev » 5.x-dev
Status: Closed (fixed) » Active

Could this be ported to 5.x or is it to much of a feature? Would help with usability.

Gurpartap Singh’s picture

Version: 5.x-dev » 6.x-dev
Status: Active » Closed (fixed)

I don't think this will be making into Drupal 5.