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

#   Canonical urls

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 6 months ago [\#98955](#98955) by [norm](/forum/user/12428-norm "View norm's Profile")  *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#98955 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")* was created by *[norm](/forum/user/12428-norm "View norm's Profile")*

Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag would not have to show in the html on the canonical url html - but on the non-canonical urls - directing back to the canonical one. In my case I am using SH404 and while I can add canonical urls through this, I cannot see any tags appearing using the Hikashop canonical setup. If I add canonical urls using Hikashop then existing SH404 canonical url tags also then disappear. Hikashop canonical information is appearing in the hikashop product data base table.

Should the Hikashop canonical system add html tags into html pages or does it work on the backend in some fashion with spiders?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

13 years 6 months ago [\#99012](#99012) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#99012 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")*

Hi,

HikaShop add the canonical URL on the product page itself. There is no interaction with SEF extensions on that end.
Then, maybe SEF extensions are intelligent enough to not add the canonical tag to the pages if there is already one added before.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 6 months ago [\#99091](#99091) by [norm](/forum/user/12428-norm "View norm's Profile")  Replied by *[norm](/forum/user/12428-norm "View norm's Profile")* on topic *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#99091 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")*

Thanks Nicolas. With a little more experimentation the point is if SH404 is turned on then the Hikashop entered canonical urls will not be displayed. If there is a value in the data base for the Hikashop url then neither the Hikashop or SH404 canonical URL will be displayed. If the Hikashop value is removed from the database then the SH404 entered canonical value will be displayed on the page html.

Seems like a compatibility issue with SH404.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

13 years 6 months ago [\#99112](#99112) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#99112 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")*

Can you give a URL of a product page with the canonical URL entered in HikaShop and SEF activated ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 5
- Thank you received: 0
-
-

13 years 6 months ago [\#99152](#99152) by [norm](/forum/user/12428-norm "View norm's Profile")  Replied by *[norm](/forum/user/12428-norm "View norm's Profile")* on topic *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#99152 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")*

Tks, here they are. SH404 activated (but no canonical ul given),canonical urls given in Hikashop for category and product (the same as listed here)

[ douglaschain.com.au/miners-belts/category](http://douglaschain.com.au/miners-belts/category)

[ douglaschain.com.au/miners-belts/product/414-miners-belt](http://douglaschain.com.au/miners-belts/product/414-miners-belt)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

13 years 6 months ago [\#99341](#99341) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Canonical urls](/forum/3-bug-report/80378-canonical-urls#99341 "Hi. Thanks for adding the canonical URL feature for categories in 2.1.2 and the existing product feature. Just a question regarding how it manifests on the site. I believe, the canonical URL tag...")*

It could potentially be that you edited the "show" file of the view "product" before updating HikaShop and because of that, you didn't get the modifications for canonical URLs.
In that case, you would have to add the code in it via the menu Display-&gt;Views yourself: Code:

&lt;?php if(isset($this-&gt;element-&gt;product_canonical) &amp;&amp; !empty($this-&gt;element-&gt;product_canonical)){ $parsedCanonical = parse_url($this-&gt;element-&gt;product_canonical); $parsedCurrent = parse_url(JURI::base()); if(!isset($parsedCanonical['query'])) $endUrl = $parsedCanonical['path']; else $endUrl = $parsedCanonical['path'].'?'.$parsedCanonical['query']; $canonicalUrl = $parsedCurrent['scheme'].'://'.$parsedCurrent['host'].$endUrl; $doc =&amp; JFactory::getDocument(); $doc-&gt;addCustomTag( '&lt;link rel="canonical" href="'.$canonicalUrl.'" /&gt;' ); } ?&gt;

or remove your customization.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDM3OC1jYW5vbmljYWwtdXJscz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.063 seconds

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