jsilmarovi Posted January 24, 2019 Share 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)? Link to comment Share on other sites More sharing options...
adrian Posted January 24, 2019 Share 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. Link to comment Share on other sites More sharing options...
Sergio Posted January 24, 2019 Share Posted January 24, 2019 Some examples: 1 Link to comment Share on other sites More sharing options...
jsilmarovi Posted January 25, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
Sergio Posted January 25, 2019 Share Posted January 25, 2019 Awesome! Good luck with the project! 2 Link to comment Share on other sites More sharing options...
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