- Posts: 640
- Thank you received: 16
URLs broken after entering hikashop menus
- PeterChain
-
Topic Author
- Offline
Less
More
12 years 3 months ago #162133
by PeterChain
URLs broken after entering hikashop menus was created by PeterChain
-- 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
-- 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.
12 years 3 months ago #162172
by nicolas
Replied by nicolas on topic URLs broken after entering hikashop menus
Hi,
Ah yes, that's something which has not been handled with the new SEF URL system.
Add the code:
before the line:
in the file administrator/components/com_hikashop/helpers/helper.php and that will handle it.
Ah yes, that's something which has not been handled with the new SEF URL system.
Add the code:
Code:
if(!empty($parsedCurrent['port']) && $parsedCurrent['port']!= 80){
$endUrl = ':'.$parsedCurrent['port'].$endUrl;
}
Code:
$cleanUrl = $parsedCurrent['scheme'].'://'.$parsedCurrent['host'].$endUrl;
Please Log in or Create an account to join the conversation.
Time to create page: 0.151 seconds