jsilmarovi Posted January 24, 2019 Posted January 24, 2019 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 thishttp://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)?
adrian Posted January 24, 2019 Posted January 24, 2019 You'll want to hook into ProcessLogin::afterLogin Sorry, no time for an example, but hopefully that will get you going.
jsilmarovi Posted January 25, 2019 Author Posted January 25, 2019 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now