# \<link rel="alternate"\> via standard\_header\_includes

**URL:** <https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [October 29, 2024, 2:14pm UTC](https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413 "2024-10-29T14:14:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsmith77](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lsmith77/32/191541_2.png) [@lsmith77](https://community.hubspot.com/u/lsmith77)\
**Post date:** [October 29, 2024, 2:14pm UTC](https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413/1 "2024-10-29T14:14:06Z")

</div>

I have created multilingual dynamic pages using HubDB.

For this I have a single set of HubDB tables with children that I am using on 3 pages:

1. /en/categories
2. /fr/categories
3. /de/kategorien

I am noticing that on the /en and /fr pages standard\_header\_includes appears to be generating \<link rel=“alternate” hreflang ..\> tags. I suspect it is due to the fact that the directory below the language code is the same (ie. categories).

The issue is that those links are not correct, so I would like to remove them. How can I do this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 30, 2024, 3:18pm UTC](https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413/2 "2024-10-30T15:18:58Z")

</div>

Hi, @lsmith77 👋 Thanks for your question. I’d like to invite some of our community experts to the conversation — hey @HFisher7 [@Indrayani](https://community.hubspot.com/t5/user/viewprofilepage/user-id/839514) @Anton can you offer any insight or suggestions for @lsmith77’s project?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/230943_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [December 4, 2024, 2:25am UTC](https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413/3 "2024-12-04T02:25:38Z")

</div>

Hi @lsmith77,

standard\_header\_includes cannot be altered or removed.

Can you confirm if the /en/, /fr/m and /de/ paths are manually added instead of using HubSpot’s multi-language variation tool?

---

<div class="post-metadata">

**Author:** ![lsmith77](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lsmith77/32/191541_2.png) [@lsmith77](https://community.hubspot.com/u/lsmith77)\
**Post date:** [December 4, 2024, 7:29am UTC](https://community.hubspot.com/t/link-rel-alternate-via-standard-header-includes/119413/4 "2024-12-04T07:29:57Z")

</div>

The language subdirectories are added automatically by Hubspot.

My fix for now is to remove those links via a regex:

{{ standard\_header\_includes|regex\_replace(“\<link rel=\“alternate\” hreflang=\”[a-z]{2}\" href=\“.+\>”, “”) }}
