- Posts: 7
- Thank you received: 0
Pagination duplicating the domain url as suffix
- blastedkane
-
Topic Author
- Offline
Less
More
11 years 3 days ago #218615
by blastedkane
Pagination duplicating the domain url as suffix was created 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
-- 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.
11 years 1 hour ago #218969
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Pagination duplicating the domain url as suffix
Hi,
Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace
By
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,
Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace
Code:
$result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri;
Code:
if(strpos($requestUri, 'http://') === false && strpos($requestUri, 'https://') === false)
$result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri;
else
$result = $requestUri;
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