|
|||
Hi all, anyone knows how to redirect previous page instead of homepage after login?
For example user is viewing 'index.php?option=com_mycom&view=myview' when user logs in with jconnector, I want the user redirected to 'index.php?option=com_mycom&view=myview' after login, how can I do this? |
|
|||
Hi,
At the current moment jConnector redirects to a static page. So the best you can do is change this static page to another static page (in modules/mod_jconnector/jconnector_server.php). Your idea makes good sense though and I am adding this to my ToDo list and this will be available in the future release. |
|
|||
Hi,
Redirects are done by a function called header(). There are two of them in jconnector_server.php and they look like this Code:
header('Location: '.str_replace('modules/mod_jconnector/', '', JURI::base()));
Code:
header('Location: '.str_replace('modules/mod_jconnector/', '', JURI::base()).'?option=com_comprofiler');
If you have any more questions or something is not fully clear, please feel free to ask me. |
|
|||
Hi, if Joomla SEF is enabled, how to redirect to a specified page like: www.mysite.com/category/example.html ?
|
|
|||
|
|||
Quote:
it works! ![]() line 68 and 129 on jconnector_server.php file
|
|
|||
Tried using HTTP_REFERER but it didnt work so well in IE8.
With on logins it would just return me to http:/site/module/mod_jconnector/ this is using with SH404SEF. So what i did was in my joomla template index.php I placed this at the end of the code. Code:
<?php
$last_page = str_replace('&lang','&lang',$_SERVER["REQUEST_URI"]); $_SESSION['lastPage'] = $last_page;
?>
|







Linear Mode
