Skip to main content

Question concerning page redirection

More
15 years 10 months ago #1003 by Redeemer
Hi,

I have a menu item that will take a user to his account page if clicked. If the menu button is clicked when the user is not logged in, I would like to have him go back to my main page, but it instead takes him to one of my product pages. How can I change this?

Thanks,
-Redeemer

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1006 by nicolas
In the file components/com_hikashop/controller/user.php near line 20, you have the code
Code:
$app->redirect(hikashop::completeLink('category',false,true));
that you can replace by
Code:
$app->redirect(JRoute::_('index.php?option=com_user&view=login',false));

That's indeed something which I think everyone would like to have. We will change that in the same way for next version.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1026 by Redeemer
Thank you for the quick response. This solved my problem.

-Redeemer

Please Log in or Create an account to join the conversation.

Time to create page: 0.143 seconds
Powered by Kunena Forum