Topic-icon Logout redirection issue

Active Subscriptions:

None
5 years 4 months ago - 5 years 4 months ago #64966 by Magh
Hello,

I had set up the SClogin module and worked on its css, styling it. Later on, I noticed a logout issue where no matter what setting was configured in the logout options, I always got a redirect back to home page. Login redirection still works ok, but there is no way I can stay on the same page after logout.
I tried everything I could think of, like purging sessions table and clearing cache a few times, even restoring an few days older version of the site from back-up, but nothing.
I checked Joomla's login module, and configured it to "default" (same page) for both login and logout, just in case this module interfered. Same, for a logout menu item (from user menu, which SClogin is set to display). All settings seem to be ok. Yet, any logout from SClogin still redirects to home page no matter what.

Is there some way to fix that?
Last edit: 5 years 4 months ago by Magh.
The topic has been locked.
Support Specialist
5 years 4 months ago #64971 by alzander
Replied by alzander on topic Logout redirection issue

I checked Joomla's login module, and configured it to "default" (same page) for both login and logout, just in case this module interfered. Same, for a logout menu item (from user menu, which SClogin is set to display). All settings seem to be ok. Yet, any logout from SClogin still redirects to home page no matter what.

I'm unsure what you mean by this. Are you saying that the standard Joomla login module also redirects to the home page?

The only suggestions I'd have immediately from your description are:
* Make sure you're not on a page that's set for registered users only. If so, then yes, you will be redirected to the home page. If you logout, you won't be able to access the registered page, so we do indeed push you back to the home page.
* Try turning off SEF URLs and test if the same problem occurs. Sometimes SEF URLs cause issues. If that fixes it, we'll gladly help investigate how to re-enable them.

Thanks,
Alex
The topic has been locked.