Solved

drupal login redirection

Posted on 2014-04-10
11
669 Views
Last Modified: 2014-04-14
Hi experts,

I am trying to redirect users to their profile pages using login destination, but it seems it does not work when the login is displayed by using modal forms module.

So far, after users logs in, he is redirected to the homepage not to his profile page. Could you please explain me how to do it? Thanks,

Winter
0
Comment
Question by:glepiza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
11 Comments
 

Author Comment

by:glepiza
ID: 39993123
Anyone? Please?
0
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39993458
Try upgrading to the dev version of the module. It looks as though a patch was added to allow the login form to respect the destination parameter.
0
 

Author Comment

by:glepiza
ID: 39994234
ok, I wil try. Be right back
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:glepiza
ID: 39994471
nop, it did not work, it does work when I used without modal form, I mean, it works when I go directly to www.examplesote.com/user, otherwise it won't.

Is there an alternative?

Thanks,
0
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39996760
Looking at the source for the modal forms module, it looks as though it adds an action to the Rules module to allow you to redirect after login. The action is titled "Page redirect (modal forms aware)". You should be able to create a Rule that executes this action on user login.
0
 

Author Comment

by:glepiza
ID: 39996816
Hello Arrow_1,

Thank you very much for your answer. Well, I tried using Rules module and unfortunately it did not work on modal forms. Attached goes the settings I set on the rules page.
On the other hand, I was searching on Drupal forums and I found this blog, but I have no idea how to apply it, or where to place that code, maybe the answer is there:

https://drupal.org/node/1329040

I would greatly appreciate if you could help me with this annoying issue.

Thanks
Captura-de-pantalla-2014-04-12-a.png
0
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39996878
Be sure you are using the "Page redirect (modal forms aware)" action, rather than the "Page redirect" action.
0
 

Author Comment

by:glepiza
ID: 39996883
Hi Arrow_1,

Could you please tell me how to set that up? I don´t see modal forms aware on the action list. Do you have an screenshot where I can see it?

Thanks :)
0
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 300 total points
ID: 39998020
It's included with the dev version of the module. It should be there if you updated. Be sure run update.php after updating. Also try clearing caches.
0
 

Author Comment

by:glepiza
ID: 39998921
Great!!! it finally worked!!!! I feel like crying now! Thanks!
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question