Redirect user to Profile page after submitting edits?

Permalink
I've searched the forums looking for a method to accomplish this. It doesn't make much sense to just hang on the edit page after submitting the Edit form.

I'd like to return the user to their profile page so they can view their displayed profile.

invision
 
spencerhudson replied on at Permalink Reply 1 Attachment
spencerhudson
in the system& adminstration tab ... you need to see

Login & Registration

and then

Login Destination

within the "login destination" you can select where a user is sent ... when they login
cursal replied on at Permalink Reply
cursal
I don't think invision meant after the login.

I think he means when you are on a profile page and you click
"Edit Information" it opens the form that you can fill in or update any attributes in the profile. When you hit the save button it lets you know at the top of the form the updates are made, but you are still on the form.

"Still on the form" after SAVE is what I believe invision is talking about....and I agree. Should go back to the profile page and not stay on the edit form.
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
Has anyone solved this issue? My client is asking for the same thing.
lpsnoops replied on at Permalink Reply
lpsnoops
Hello,

i cant solve yet this situation.

In other way i used a javascript function adding go back button.

In profile/edit.php after
<?php echo $form->submit('save', t('Save'))?>

put this:

<form>
<input type="button" value="Go Back" onClick="JavaScript: window.history.back();">
</form>

Not a solution but perhaps can help for now. If there are anyone who can make a solution please tell me ;)