Skip to main content
edited for clarity
Source Link
Patrick Kenny
  • 30k
  • 19
  • 143
  • 326

What I want to do: When a user updatesredirect users to their profile, I want them to be redirected (/user) after they save changes to their account pageprofile settings (/user/[uid]/edit). If

If their account isaccounts are updated in another manner (by rules, etc.), I do not want them to be redirected.

I started by makingmade a rule like this:

  • Event-> After updating an existing account
  • Actions-> Page redirect to user/[account:uid]

This redirects properly; however, on my site sometimes user accounts get updated when a user adds content. Adding content then also causes this rule to get called, which I don't want. I only want the user to be redirected if they updated their account details at user/[account:uid]/edit.

I tried adding:

  • Condition: Path has URL alias: user/[account:uid]/edit

But this doesn't allowHowever, then the redirect ceases to function.

What I want to do: When a user updates their profile, I want them to be redirected to their account page. If their account is updated in another manner (by rules, etc.), I do not want them to be redirected.

I started by making a rule like this:

  • Event-> After updating an existing account
  • Actions-> Page redirect to user/[account:uid]

This redirects properly; however, on my site sometimes user accounts get updated when a user adds content. Adding content then also causes this rule to get called, which I don't want. I only want the user to be redirected if they updated their account details at user/[account:uid]/edit.

I tried adding:

  • Condition: Path has URL alias: user/[account:uid]/edit

But this doesn't allow the redirect to function.

I want to redirect users to their profile (/user) after they save changes to their profile settings (/user/[uid]/edit).

If their accounts are updated in another manner (by rules, etc.), I do not want them to be redirected.

I made a rule like this:

  • Event-> After updating an existing account
  • Actions-> Page redirect to user/[account:uid]

This redirects properly; however, on my site sometimes user accounts get updated when a user adds content. Adding content then also causes this rule to get called, which I don't want. I only want the user to be redirected if they updated their account details at user/[account:uid]/edit.

I tried adding:

  • Condition: Path has URL alias: user/[account:uid]/edit

However, then the redirect ceases to function.

Source Link
Patrick Kenny
  • 30k
  • 19
  • 143
  • 326

Rules- how can I redirect a user to view their profile only when they update their profile?

What I want to do: When a user updates their profile, I want them to be redirected to their account page. If their account is updated in another manner (by rules, etc.), I do not want them to be redirected.

I started by making a rule like this:

  • Event-> After updating an existing account
  • Actions-> Page redirect to user/[account:uid]

This redirects properly; however, on my site sometimes user accounts get updated when a user adds content. Adding content then also causes this rule to get called, which I don't want. I only want the user to be redirected if they updated their account details at user/[account:uid]/edit.

I tried adding:

  • Condition: Path has URL alias: user/[account:uid]/edit

But this doesn't allow the redirect to function.