[Skip to main content](#vessel-content)

#   Pagination duplicating the domain url as suffix

##

- **[blastedkane](/forum/user/28368-blastedkane "View blastedkane's Profile")**
- [![blastedkane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28368-blastedkane "View blastedkane's Profile") Topic Author
- [ Offline](/forum/user/28368-blastedkane)

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 3 days ago [\#218615](#218615) by [blastedkane](/forum/user/28368-blastedkane "View blastedkane's Profile")  *[Pagination duplicating the domain url as suffix](/forum/26-product-category-display/880107-pagination-duplicating-the-domain-url-as-suffix#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 &quot;paginates&quot; the page numbers, next buttons and quantity selectors appear to add a suffix to the link and therefore the browser always returns with a &quot;server not found&quot; 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")* was created by *[blastedkane](/forum/user/28368-blastedkane "View blastedkane's Profile")*

-- 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](http://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](http://www.janefashions.co.ukhttp//www.janefashions.co.uk/hikashop-menu-for-categories-listing/category/23-evening-and-promwear)

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODAxMDctcGFnaW5hdGlvbi1kdXBsaWNhdGluZy10aGUtZG9tYWluLXVybC1hcy1zdWZmaXg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 hours ago [\#218969](#218969) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Pagination duplicating the domain url as suffix](/forum/26-product-category-display/880107-pagination-duplicating-the-domain-url-as-suffix#218969 "-- 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 &quot;paginates&quot; the page numbers, next buttons and quantity selectors appear to add a suffix to the link and therefore the browser always returns with a &quot;server not found&quot; 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")*

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 &amp;&amp; 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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODAxMDctcGFnaW5hdGlvbi1kdXBsaWNhdGluZy10aGUtZG9tYWluLXVybC1hcy1zdWZmaXg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.109 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
