×

Notice

The forum is in read only mode.

Login Redirect issue

14 years 6 months ago #659 by manoj
Login Redirect issue was created by manoj
Hi,

My question is how to user redirect after login form in \"new job posting form\". Now currently user after login they jump to index page. what is possible to user after login go to \"new job posting form\". Please help me.

Thanks
14 years 6 months ago #665 by Ahmad
Replied by Ahmad on topic Login Redirect issue
Hi,

JS Jobs can not change other component code so JS Jobs can not control login and redirect after login.

You may change the code of com_user to control redirect.
components/com_user/controller.php
method : login()
code...........
if(!JError::isError($error))
{
// Redirect if the return url is not registration or login
if ( ! $return ) {
$return = \'index.php?option=com_user\'; change this line
with
index.php?option=com_jsjobs&c=jsjobs&view=employer&layout=formjob

}

$mainframe->redirect( $return );
}
else
{
// Facilitate third party login forms
if ( ! $return ) {
$return = \'index.php?option=com_user&view=login\';
}

// Redirect to a login form
$mainframe->redirect( $return );
}

Their is an other article to redirect.
docs.joomla.org/How_do_you_redirect_user..._successful_login%3F

Please write your valuable review JS Jobs and JS Support Ticket at JED.
14 years 6 months ago #666 by manoj
Replied by manoj on topic Login Redirect issue
Hi,

Thank\'s for ripply. we already changes these path. But they are not redirect login page. can you have another suggestion.


Thank you.
14 years 5 months ago #734 by rashad
Replied by rashad on topic Login Redirect issue
You can specify the redirect page from the login module
Time to create page: 0.185 seconds

Please publish modules in offcanvas position.