Skip to main content

Pagination duplicating the domain url as suffix

More
11 years 3 days ago #218615 by blastedkane
-- HikaShop version -- : HikaShop Essential: 2.6.0
-- Joomla version -- : Joomla! 3.4.5
-- PHP version -- : 5.4
-- Browser(s) name and version -- : All Browers
-- Error-message(debug-mod must be tuned on) -- : Firefox can't find the server at www.janefashions.co.ukhttp .

I am having a problem with hikashop. I have upgraded to the latest version and am running the latest versions of Joomla.

When a category "paginates" the page numbers, next buttons and quantity selectors appear to add a suffix to the link and therefore the browser always returns with a "server not found" error

eg

www.janefashions.co.ukhttp//www.janefash...evening-and-promwear

I have seen similar errors in the forums however have not found an answer that worrks

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

More
11 years 1 hour ago #218969 by Jerome
Hi,

Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace
Code:
$result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri;
By
Code:
if(strpos($requestUri, 'http://') === false && strpos($requestUri, 'https://') === false) $result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri; else $result = $requestUri;
It will avoid the issue of duplicate "http".
It looks like some web-servers include the domain in the "REQUEST_URI" and in the "REDIRECT_URL" while they shouldn't.
We will also include that patch in next HikaShop release.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum