在目录中使用引用会重新加载页面但不会跳转到引用

正在尝试使用目录(TOC)链接到常见问题解答中的主题。当我点击目录项时,它会重新加载页面,并且不会在 URL 中传递“#”引用,因此页面无法跳转。但是,如果我直接在浏览器中输入 URL,则可以正常工作。

这是代码:

<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:
2 个赞

你好 RBoy :slight_smile:

这个问题在这里被提到了:

1 个赞

有趣的是,这在去年中后期曾经可以运行。后来在某个时候变坏了。