Drupal login redirects

Dear experts,

Does someone knows how to redirect users to their user accounts? for some reason it keeps redirecting me to the homepage. I used login destination but it is not working, and I would really like not to user a module for this.  I thought drupal by default redirected users to their accounts after logged in, but for some reason it is not working for me.

I am using Drupal Commons.

Thank you very much,

Winter
glepizaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nanharbisonCommented:
Did you try the Rules module?
https://drupal.org/node/298506
0
nanharbisonCommented:
The module is here: https://drupal.org/project/rules
0
HagayMandelCommented:
See this.
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

glepizaAuthor Commented:
Hello experts,

I tried following the steps you from the link you suggested, but for some reason I keep getting ajax errors, I guess there is a conflict between ajax login and trigger and actions. Do you guys know how to do it using rules?

Thanks,
0
nanharbisonCommented:
The first link I gave you is a tutorial about using Rules
0
glepizaAuthor Commented:
hi nanharbison, thanks for your reply?

By any chance do you know how to do it for Drupal 7? the tutorial you sent me is for drupal 6.
I thought it was the same, but it is quite different. Could you please guide me?

Thanks in advance,

Winter
0
nanharbisonCommented:
Oh sorry! I haven't used it with Drupal 7 yet, but there is a whole Rules "book" here:
https://drupal.org/node/1866108
and #7 is login redirects, it's a video, so should be easy to follow. If not, I will install Rules on one of my websites and help you figure it out.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nanharbisonCommented:
Were you able to follow the video. I did install the Rules module and followed it, it was very straight-forward.
0
glepizaAuthor Commented:
Yes, I was following the video yesterday but it seems I am missing something because it keeps redirecting me to the home page.
I dont know if this has something to do with it, but I am using drupal commons and its default template is adaptive theme which is based on panels.
There are two custom pages for anonymous and authenticated users, so when a users logs in, he is taken to the home page that corresponds to authenticated users which is localhost/home. I dont know if that is preventing the redirect, and i don{t know how to disable that...

I am currently out of my place, but as soon as I get to my workplace I will try the video again, be back in like 4 hours.

thanks again :)
0
nanharbisonCommented:
What page did you choose to be the action? Do you remember?
0
glepizaAuthor Commented:
I think user/
0
glepizaAuthor Commented:
hello,

Well, I tried again the rules but it is still not working for me. I attached two screenshots, one from the rules that I added and the other one corresponds to the panels page that it seems to be redirecting authenticated users and anonymous users to their corresponding page. I am not pretty sure how that works in there, but I have the feeling those panels are preventing the redirecting to the user profile page.

thanks :)
panels.png
rules-for-logged-in-users.png
0
nanharbisonCommented:
Wow, that is annoying! On the panels page, under Panel Home (authenticated) and Panel Home (anonymous), there is a field called selection rule, what happens if you edit the one for authenticated?
0
glepizaAuthor Commented:
Yup, pretty annoying. If i edit that page it will take authenticated users to that page :(
0
glepizaAuthor Commented:
hmm, I tried to add a diferent page as the default home page but the redirection is still not working. I am wondering if it also has to do with the fact that I am using ajax login block.... I am going to try to install it in another drupal site and see if that makes any difference.
0
junipllcCommented:
I've also seen this behavior when some of the content is written in PHP (the PHP filter format). Sometimes there is code in there that inadvertently directs the user to the wrong place. I doubt this is it, but it's just food for thought.

Mike
0
glepizaAuthor Commented:
Hi junipllc,

Thanks for you input. I was checking if the php filter module was enabled on my site but it is not.... I was hoping that was the answer... but I am still looking to find what is going on.
0
nanharbisonCommented:
Let us know what happens on the other site you use the AJAX block on. Or, can you just disable the AJAX block on this site and see if the redirects work?

Did you create the rules for logged in users, which you have in the image? I installed Drupal Commons on a new website and want to configure it exactly the way you have it so I can help figure out what is wrong. Meanwhile, I am going to add some users and the Rules module and see if it works.
0
glepizaAuthor Commented:
Hello nanharbison!

After a couple tries, it seems that definetely the problem is the ajax module. I applied the rules for redirecting users to [account:url] and it was not working. But when i disabled ajax login module it did work. I am not sure what to do know... I do need to use that functionality.
By any chance do you know an alternative for that module or what can I do instead? Not pretty sure why ajax login is preventing the redirect...

Any help would be greatly appreciate it.

Thanks,

Winter
0
nanharbisonCommented:
Have you run reports lately to make sure everything else is okay?
0
glepizaAuthor Commented:
I feel very embarrass now... I went to see the configuration settings of Ajax Login module and there is actually a redirect option... so I set it to user, but I am keeping the rules just in case.

However, I feel very grateful with you all because I never used rules, actions or triggers before :).

Thank you very much for all your help.
0
glepizaAuthor Commented:
thanks!
0
nanharbisonCommented:
You are welcome, thanks for the points. Rules is an AWESOME module to know about if you are work on Drupal sites.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.