# How to set the canonical link on home page?

**URL:** <https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477>\
**Category:** Shopware 6 (English)\
**Created:** [30. September 2022 um 13:30 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477 "2022-09-30T13:30:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shopware\_user123](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Shopware\_user123](https://forum.shopware.com/u/Shopware_user123)\
**Post date:** [30. September 2022 um 13:30 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/1 "2022-09-30T13:30:11Z")

</div>

Where can I change the canonical for home? Documentation doesn’t say a word about it of course, there are some instructions how to make it on products, but what about home page?

I see my canonical is wrong (sure it is, it is Shopware), finding myself the option in administration failed (sure it did, it is Shopware), internet also doesn’t seem to have the answer (sure it doesn’t, it is about Shopware). Does anyone know?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [30. September 2022 um 14:21 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/2 "2022-09-30T14:21:24Z")

</div>

> <https://github.com/shopware/platform/blob/0f4fd9e196876ba8d8c5632ea3daf01484b821cb/src/Storefront/Resources/views/storefront/layout/meta.html.twig>

Not sure why your canonical is wrong. Works fine for me.

---

<div class="post-metadata">

**Author:** ![Shopware\_user123](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Shopware\_user123](https://forum.shopware.com/u/Shopware_user123)\
**Post date:** [5. Oktober 2022 um 14:23 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/3 "2022-10-05T14:23:14Z")

</div>

Okay dear friend, first of all, I am very happy that it works by you, that made my day that somewhere on some mysterious computer it works, it’s like I can go peacefuly home now. 👏  
Secondly, did you just put here whole the meta.html.twig? Seriously? Wow…  
At third, my question was „where do I set it“ so I can change it. Sure I see in the twig file where it is, but I need to remove the slash from the end of canonical. And this seems not only to be impossible to be done on the template itself, but it seems there is no option to ‚configure‘ how the canonicals should look like.  
Also, have a look what happens when you try to do any string operation on the canonical, eg.:  
{{ page.metaInformation.canonical[0:-1] }}

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [5. Oktober 2022 um 15:27 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/4 "2022-10-05T15:27:17Z")

</div>

> [@Shopware\_user123](#):
>
> Okay dear friend, first of all, I am very happy that it works by you, that made my day that somewhere on some mysterious computer it works, it’s like I can go peacefuly home now. 👏

I am glad I could help you.

---

<div class="post-metadata">

**Author:** ![Shopware\_user123](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Shopware\_user123](https://forum.shopware.com/u/Shopware_user123)\
**Post date:** [6. Oktober 2022 um 07:18 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/5 "2022-10-06T07:18:41Z")

</div>

By the way of your thinking, aren’t you one of the guys who created and now mantain the Shopware?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [6. Oktober 2022 um 08:24 UTC](https://forum.shopware.com/t/how-to-set-the-canonical-link-on-home-page/96477/6 "2022-10-06T08:24:30Z")

</div>

No, I’m afraid I have to disappoint you. I only do this in my spare time.
