jsilmarovi

Redirect after login with url parameter

Recommended Posts

Hello.

I searched on some topics to see if processwire is able to do something like this but didn't found yet.

Someone here knows if is possible to define a custom redirect after login on PW? Something like this

http://mydomain.com/processwire/?redirect=http://mydomain.com/about/me

When the user log in, so he is redirect for the specific page on an url parameter (like the example above)?

Share this post


Link to post
Share on other sites

You'll want to hook into ProcessLogin::afterLogin

Sorry, no time for an example, but hopefully that will get you going.

Share this post


Link to post
Share on other sites

Hello @adrian and @Sergio thanks for the suggestions. After reading a little bit more I decided to follow a different approach: create a custom login page.

Apparently fits my needs here.

Thanks again for the suggestions.

Share this post


Link to post
Share on other sites

Awesome! Good luck with the project!

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.