Pagination duplicating the domain url as suffix

  • Posts: 7
  • Thank you received: 0
9 years 10 months ago #218615

-- 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.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 10 months ago #218969

Hi,

Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace

	$result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri;
By
	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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum