# "Table of content" of the Cookbook: Convert umlauts better for IDs

**URL:** https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996
**Category:** Questions
**Tags:** v5
**Created:** [November 20, 2025, 7:23am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996 "2025-11-20T07:23:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Saerdna](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/saerdna/32/14088_2.png) [@Saerdna](https://forum.getkirby.com/u/Saerdna)
#### Post date: [November 20, 2025, 7:23am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/1 "2025-11-20T07:23:44Z")

</div>

I use this plugin from the Cookbook:

> **[Anchors and ToCs](https://getkirby.com/docs/cookbook/navigation/table-of-contents)**
>
> Auto-replace headlines with anchors and generate in-page navigation

If the content of a heading contains umlauts, these are not taken into account when generating the ID.

Förderung

becomes

`<element id="forderung">Förderung</element>`

Desired result:

`<element id="foerderung">Förderung</element>`

Is there a way to do this? Thank you.

---

<div class="post-metadata">

### Author: ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)
#### Post date: [November 20, 2025, 9:43am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/2 "2025-11-20T09:43:00Z")

</div>

I suspect a connection with this error:

> <https://github.com/getkirby/kirby/issues/7662>
>
> \## Description
> When uploading a file with German umlauts, the filename displayed… in the upload field may differ from the name under which the file is actually saved.
> 
> \- Umlauts are replaced as follows: ä → a, ö → o, ü → u, or when the slug option is set to \`de\`, ä → ae, ö → oe, ü → ue.
> \- However, the \`e\` may appear as a \`-\` in the filename field of the upload dialog.
> \- If you do not change the filename in the upload dialog, the file will be saved correctly with the replaced characters. If you do modify the filename, the file will be saved based on the wrong name.
> 
> \*\*Expected behavior\*\*  
> The filename should match the saved filename.
> 
> \*\*Screenshots\*\*
> Upload dialog:
> \<img width="658" height="226" alt="Image" src="https://github.com/user-attachments/assets/15ab3556-a045-4485-b1a5-76bf55768cc5" /\>
> Saved file:
> \<img width="535" height="123" alt="Image" src="https://github.com/user-attachments/assets/3dbde55e-76a3-45c8-bdc2-44916f102cd9" /\>
> 
> \## To reproduce
> 1. Upload a file with German umlauts
> 2. Check the filename in the upload dialog
> 3. Check the actually saved filename
> 
> \## Your setup
> \*\*Kirby Version\*\*  
> 5.1.3
> 
> \*\*Console output\*\*  
> None
> 
> \*\*Your system (please complete the following information)\*\*
> - Device: MacBook Pro
> - OS: macOS 26.1
> - Browser: Safari
> - Version: 26.1

---

<div class="post-metadata">

### Author: ![Saerdna](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/saerdna/32/14088_2.png) [@Saerdna](https://forum.getkirby.com/u/Saerdna)
#### Post date: [November 20, 2025, 10:07am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/3 "2025-11-20T10:07:44Z")

</div>

I wasn’t talking about file names with umlauts. I never use umlauts in file names.

I’m only concerned with the ToC.

---

<div class="post-metadata">

### Author: ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)
#### Post date: [November 20, 2025, 10:22am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/4 "2025-11-20T10:22:13Z")

</div>

> [@Saerdna](#):
>
> I never use umlauts in file names.

# … Convert umlauts better for IDs

Förderung → ö = Umlaut

Sorry, I must have misunderstood…

---

<div class="post-metadata">

### Author: ![Saerdna](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/saerdna/32/14088_2.png) [@Saerdna](https://forum.getkirby.com/u/Saerdna)
#### Post date: [November 20, 2025, 10:39am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/5 "2025-11-20T10:39:47Z")

</div>

That is content. Not a name of file.

---

<div class="post-metadata">

### Author: ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)
#### Post date: [November 20, 2025, 11:38am UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/6 "2025-11-20T11:38:24Z")

</div>

> **[slugs](https://getkirby.com/docs/reference/system/options/slugs)**
>
> Set language for slug generator

---

<div class="post-metadata">

### Author: ![Saerdna](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/saerdna/32/14088_2.png) [@Saerdna](https://forum.getkirby.com/u/Saerdna)
#### Post date: [November 20, 2025, 12:17pm UTC](https://forum.getkirby.com/t/table-of-content-of-the-cookbook-convert-umlauts-better-for-ids/34996/7 "2025-11-20T12:17:13Z")

</div>

Thank you! : ) What an elegant solution!

A thought for the future:  
Would it perhaps make sense to make the language for the slug generator dependent on the main language of the site?  
Then there would be a useful default.

Just an idea.
