Jump to content
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...