redirect after login

Do you have an idea for the Joomla community that you can help implement? Discuss in here.
Forum rules
Global Rules
Posting guidelines for this board <-- please read before posting.

Joomla Idea Pool <-- Add your suggestions for future versions of Joomla and vote on current suggestions.
Locked
uske
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Apr 25, 2015 11:04 am

redirect after login

Post by uske » Sat Apr 25, 2015 11:19 am

Currently, the login module of Joomla has only one way of forwarding after login. It would not be a good solution to have to offer multiple logins on the website.

I need the functionality 'redirect after login'
to route to defined different pages depending on the user rights (group or account).

The existing extension 'redirectafterlogin' is bad, it's not really deal with the permissions.

Unfortunately, I am not even able to create such functions :( .

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37284
Joined: Sat Apr 05, 2008 9:58 pm

Re: redirect after login

Post by Webdongle » Sat Apr 25, 2015 12:38 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

uske
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Apr 25, 2015 11:04 am

Re: redirect after login

Post by uske » Sat Apr 25, 2015 2:18 pm


User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37284
Joined: Sat Apr 05, 2008 9:58 pm

Re: redirect after login

Post by Webdongle » Sat Apr 25, 2015 3:17 pm

Those links work for me and the links off those pages
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

camy_cent
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jul 29, 2015 6:26 am

Re: redirect after login

Post by camy_cent » Mon Aug 03, 2015 10:46 am

Try this code to redirect after login attempt:

$redirectUrl = '&return='.$redirectUrl;
$joomlaLoginUrl = 'index.php?option=com_users&view=login';
$finalUrl = $joomlaLoginUrl . $redirectUrl;

GOPCSOFT
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Oct 20, 2016 1:05 pm

Re: redirect after login

Post by GOPCSOFT » Fri Nov 11, 2016 5:55 pm

Add 301 Redirect code via .htaccess , It would be permanent redirection
After login specify your target address .
here is the code modify according to your requirement

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

jigneshkumar
I've been banned!
Posts: 22
Joined: Wed Nov 16, 2016 8:43 am

Re: redirect after login

Post by jigneshkumar » Thu Nov 17, 2016 6:37 am

Above links are working .
kindly can you plz clear cache of your browser?

thanks

shahzan
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 08, 2017 11:11 am

Re: redirect after login

Post by shahzan » Wed Feb 08, 2017 11:17 am

two links are usable. thanks again


Locked

Return to “Joomla! Ideas Forum”