Skip to content

Broken in-page links due to incorrect heading IDs #36832

Open
@shusch

Description

@shusch

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/fr/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

Although the example is in French, this problem occurs across all non-English languages.

What part(s) of the article would you like to see updated?

The following in-page links do not work in languages other than English.
https://github.com/github/docs/blob/main/content/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address.md?plain=1#L36

https://github.com/github/docs/blob/main/data/reusables/user-settings/no-verification-disposable-emails.md

This issue occurs because translated headings are directly used as their element IDs, causing inconsistencies with the links.
It seems that this only affects headings that include Liquid statements.

If the heading element IDs remain unchanged during translation, the links should work correctly.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamlocalizationIssue or PR relating to translation or localization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions