Question concerning page redirection

  • Posts: 36
  • Thank you received: 0
13 years 5 months ago #1003

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.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 5 months ago #1006

In the file components/com_hikashop/controller/user.php near line 20, you have the code

$app->redirect(hikashop::completeLink('category',false,true));
that you can replace by
$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.

  • Posts: 36
  • Thank you received: 0
13 years 5 months ago #1026

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.058 seconds
Powered by Kunena Forum