URLs broken after entering hikashop menus

  • Posts: 639
  • Thank you received: 16
  • Hikashop Business
10 years 11 months ago #162133

-- url of the page with the problem -- : localhost MAMP 3.x for Mac
-- HikaShop version -- : 2.newest
-- Joomla version -- : 3.newest
-- PHP version -- : 5.5.10
-- Browser(s) name and version -- : all mac


Teh whole Joomla site works fine with menus and links.

Also entering the main menu hikashop product submenu or category submenu

but once inside a category or product view the links get broken so I can't see anything inside hikashop

so if my regular URL should be

http://localhost:8888/activacions/index.php/catalogo-de-carretillas/producto/824-e-15

it gets broken in the beginning of the string like this

http://localhost/activacions/index.php/catalogo-de-carretillas/producto/824-e-15

or

http://localhost/catalogo-de-carretillas/producto/824-e-15


I have a regular .htaccess
Search Engine Friendly URLs ON
Use URL rewriting OFF

but tried all sort of combinations

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

  • Posts: 83935
  • Thank you received: 13596
  • MODERATOR
10 years 11 months ago #162172

Hi,

Ah yes, that's something which has not been handled with the new SEF URL system.
Add the code:

if(!empty($parsedCurrent['port']) && $parsedCurrent['port']!= 80){
		$endUrl = ':'.$parsedCurrent['port'].$endUrl;
	}
before the line:
$cleanUrl = $parsedCurrent['scheme'].'://'.$parsedCurrent['host'].$endUrl;
in the file administrator/components/com_hikashop/helpers/helper.php and that will handle it.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum