Ich versuche, ein Inhaltsverzeichnis (TOC) zu verwenden, um auf Themen in einem FAQ zu verlinken. Wenn ich auf das TOC-Element klicke, wird die Seite neu geladen und die #-Referenz wird nicht in die URL übergeben, sodass die Seite nirgendwohin führt. Wenn ich jedoch die URL direkt in den Browser eingebe, funktioniert es.
Hier ist der Code
<details open><summary>Table Of Contents: </summary><ul>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-1">
This link should take me to Topic 1</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-2">
This link should take me to Topic 2</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-3">
This link should take me to Topic 3</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-4">
This link should take me to Topic 4</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-5">
This link should take me to Topic 5</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-6">
This link should take me to Topic 6</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-7">
This link should take me to Topic 7</a></li><br>
<li><a href="https://meta.discourse.org/t/358380#some-heading-topic-8">
This link should take me to Topic 8</a></li><br>
<div data-theme-toc="false"></div>
## Some heading topic 1
**Text A**
> Description of issue and resolution
---
## Some heading topic 2
**Text A**
> Description of issue and resolution
---
## Some heading topic 3
**Text A**
> Description of issue and resolution
---
## Some heading topic 4
**Text A**
> Description of issue and resolution
---
## Some heading topic 5
**Text A**
> Description of issue and resolution
---
## Some heading topic 6
**Text A**
> Description of issue and resolution
---
## Some heading topic 7
**Text A**
> Description of issue and resolution
---
## Some heading topic 8
**Text A**
> Description of issue and resolution
---
Table Of Contents:
- This link should take me to Topic 1
- This link should take me to Topic 2
- This link should take me to Topic 3
- This link should take me to Topic 4
- This link should take me to Topic 5
- This link should take me to Topic 6
- This link should take me to Topic 7
- This link should take me to Topic 8
Some heading topic 1
Text A
Description of issue and resolution
Some heading topic 2
Text A
Description of issue and resolution
Some heading topic 3
Text A
Description of issue and resolution
Some heading topic 4
Text A
Description of issue and resolution
Some heading topic 5
Text A
Description of issue and resolution
Some heading topic 6
Text A
Description of issue and resolution
Some heading topic 7
Text A
Description of issue and resolution
Some heading topic 8
Text A
Description of issue and resolution
In diesem Beispiel wird beim Klicken auf den Link für Topic 3 im TOC die Seite geladen, aber wenn ich die URL https://meta.discourse.org/t/358380#p-1737996-some-heading-topic-3-3 direkt in den Browser eingebe, gelange ich zur Topic-Überschrift.