Elxis CMS Forum

Support => General => Topic started by: juanon on August 04, 2014, 13:36:26

Title: Custom redirect after login/logout?
Post by: juanon on August 04, 2014, 13:36:26
Hi,

I wonder if it is possible now in Elxis Icarus to redirect a user to specific article/component/url after log in or log out.

I need that feature so much.

Thanks a lot.
Title: Re: Custom redirect after login/logout?
Post by: datahell on August 04, 2014, 14:19:49
You can do it with a small modification of module login.

Instructions for Elxis 4.2
Open file modules/mod_login/mlogin.js
Use AJAX logout in module parameters.
Go to line 125
Change this:
location.reload();
To something like that:
window.location = 'http://www.example.com/mycategory/mypage.html';
Title: Re: Custom redirect after login/logout?
Post by: juanon on August 04, 2014, 15:28:45
Thanks Ioannis,

is it valid also for loggin in?

Anyway I think it would be a good idea to add this feature out of the box and even with permissions options, so an administrator can be redirected to some page while a registered user to a different one.

Thanks a lot.
Title: Re: Custom redirect after login/logout?
Post by: juanon on September 30, 2014, 23:45:13
Hi again,

It works great for redirection after login.

How can I achieve this for logout and for iosr hotelier panel logout?

Thanks a million
Title: Re: Custom redirect after login/logout?
Post by: juanon on October 02, 2014, 11:38:39
Anyone?

I´m really in a hurry for a project.

Is there any posibility for adding login and logout redirections to login module?

Thanks a lot