guys. Got a problem with content_profile and rules modules. By default rules has a

Redirect to profile creation page, if users have no profile.

It works fine. When a user is registering on the site then logging in, it redirects the registered user to a node/add/profile (Content profile creation page). But when a user that already has a profile node logs in, he's redirecting to mysite.com/node, not on a user page.

What's wrong?

1 Answer 1


Where do you want them to go?

Redirect to profile creation page, if users have no profile.

If a user already has a profile node, they won't be directed to create one (as stated in the rule itself) so when the user logs in, he/she should be taken to your default front page (or whatever page he/she was trying to access if access was denied to anonymous users.


If you want users to be directed to the user page if they already have a profile, simply create another rule to do so. Below is an example of a rule to do this for you:

  1. Create a new rule, give it any title you like, for the Event select User has logged in and click "Save changes"
  2. Now click "Add a condition", choose User has content profile and click the "Next" button
  3. On the settings page for the condition, you may choose what content type to use for your content profile condition. Choose one (or leave it if using default Profile) and click "Save"
  4. Now click "Add an action", choose Page redirect (under the System heading) and click the "Next" button
  5. On the settings page for the redirect, in the first textbox for To: enter user, click the "Force redirect" checkbox and click "Save" (as seen below): Page redirect settings

Make sure the rule is enabled and your users should be directed to the correct pages.

  • For example i have created profile node. I go to the site mysite.com/user and log in, and by default i must be redirected to a users/myname, but im being redirected to a mysite.com/node Jun 6, 2011 at 16:06
  • I cannot reproduce that problem. With a new install of Drupal with Content Profile and Rules, everything worked as expected. If you are sure the profile node has been created, perhaps you have a conflicting rule, redirect, module, etc.
    – Laxman13
    Jun 6, 2011 at 16:33
  • I have logintobogga module on. Maybe it conflicts? Jun 6, 2011 at 18:23
  • Possibly, try disabling it and trying again. You might want to look at the issue queue for these modules to see if others have had the same problem. If you have problems with a single module, the issue queue is the best place to go.
    – Laxman13
    Jun 6, 2011 at 18:42
  • @laxman13: I've noticed that when i logging on via user login block → it redirects me straight to /node. But when im going to a page user/login it redirects me to my profile as intended... :( What can i do with user login block? Jun 13, 2011 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.