How to redirect to same page after logout? I see in aMember admin you can specify what page to redirect to after logout: http://v4.amember.com/docs/Setup/Login_Page#Login_Page_Options But if you leave it blank it will redirect to homepage. What if you don't want to redirect at all and just want the user to remain on the same page? How to do this? Thanks!
You can specify redirect url in query variables. For example: /amember/login?amember_redirect_url=/url/where/user/should/be/redirected/after/login The same format applies to logout script.
Actually my example should cover this situation. For example if content is PHP, you can place current page url in logout link: PHP: <a href='/amember/logout?amember_redirect_url=<?php echo urlencode($_SERVER['REQUEST_URI']);?>'>Logout</a>
Is it possible to setup the Logout URL with the same option (Last available URL) as the "Redirect after Login" in aMember admin? See screenshot: http://awesomescreenshot.com/0e1ngqd64 Any plans for this in the next aMember update?
Well I don't think that redirecting user to protected url will make any sense. What can be done is new option in Logout settings, somethink like : redirect user to the page where logout link was clicked. Then aMember could check referrer and redirect user back. http://bt.amember.com/issues/1014