RRK Posted May 17, 2019 Posted May 17, 2019 Hi, I wanted to ask, is there any default method in IPS suite that redirect back to the page after login from where we click login. Suppose I have a page that need login so i display a message there 'please login first to access this page', so after click on login , login page will be open and after login i should redirect back to the page. Please guide me, if IPS suite already have this feature, if yes then how to do it? like mydomain.com/forum/login?redirectTo=mypage Thanks
bfarber Posted May 17, 2019 Posted May 17, 2019 You can pass the URL base64-encoded as the ref parameter, however note that by default only internal URLs are allowed (i.e. only a URL within the Invision Community software will be honored, anything else will be ignored).
RRK Posted May 17, 2019 Author Posted May 17, 2019 14 minutes ago, bfarber said: You can pass the URL base64-encoded as the ref parameter, however note that by default only internal URLs are allowed (i.e. only a URL within the Invision Community software will be honored, anything else will be ignored). Thanks for quick reply, I need external url for angular pages. And is the ref parameter name that we need to pass and where?
bfarber Posted May 17, 2019 Posted May 17, 2019 Yes, ref is the parameter name and can be passed via GET or POST. If you need to redirect to an external URL, you would need to create a plugin so that you can hook into the login process or the \IPS\Request::i()->referrer() method.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.