Hi webs,
Are you talking about a page that has the [restricted] shortcodes on it? Where is the login form in that case? In a widget in the sidebar? You can set the login redirect URL to “#” if you want to stay on the same page after login.
Thread Starter
igwebs
(@igwebs)
Yes it has a restricted short code and a login link on the page and the whole thing is on a page not on the sidebar. No using the # makes it stay on the login page, I want to return to the page where I came from. Like if I am not logged in and on the Edit Profile page which has a login link on it and I use that link to login, I want to be redirected to the Edit Profile page.
Thanks
-
This reply was modified 9 years, 2 months ago by
igwebs.
G
(@glienhard)
I also like this idea. Just to make sure I understand, you want to be redirected back to the page that referred you to the login page. I’m thinking that should be a way to utilize the $_SERVER[‘HTTP_REFERER’] php function.
Thread Starter
igwebs
(@igwebs)
Yes that’s the idea. There should be a way to use the php code but I can’t make it work though I’ve tried. I think it should be incorporated in the shortcode scheme somehow rather than the way I was doing it on the page itself. By then I think its too late!
-
This reply was modified 9 years, 2 months ago by
igwebs.
-
This reply was modified 9 years, 2 months ago by
igwebs.
Hi webs,
Thank you for the clarification. That is not currently a feature of the plugin. The available options right now are to either keep it on the same page or redirect to a specified page. We’ll note the functionality you mentioned as a feature suggestion.
Thread Starter
igwebs
(@igwebs)
That would be a nice feature.
Thanks