Skip to content

Sangria Studios: website marketing, multi-lingual, content management systems, ecommerce, website design, developers, and consultants

Home Contact Us

Online Marketing Strategy

We prepare you with the latest online marketing techniques, and create a comprehensive plan that produces the best return on your marketing investment. We are well versed in Google adwords, analytics, email marketing, social networks, link campaigns and more.

Ecommerce & Content Management

We are experts in organizing, developing, and designing multi-lingual Ecommerce and content rich websites. We can administer your website or teach you how to take control of your website.
 
You are here: Home arrow Joomla Tutorials arrow redirecting the user after login
redirecting the user after login PDF Print E-mail
I find this strange that this is not automatically a part of the joomla code, after login, the user always wants to go back to the last page, and this is rarely the front page. This solution worked perfectly for me to redirect a joomla user after the login component page.

Basically I added a few lines of code to the login.html.php file located in com_login. On line 29 I added this, $url = mosGetParam( $_SERVER, 'HTTP_REFERER', null ); and down towards the bottom of the form I added the $url variable so the last lines of the form look like this:

If you are using the login module, the redirect page variable can be set in the module admin page properties. No hack needed.
 
< Prev
Powered By Site5.com




Google Search

Web
www.sangriastudios.com

[+]
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size