We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31e564 commit 7d6a316Copy full SHA for 7d6a316
.changeset/fruity-banks-doubt.md
@@ -0,0 +1,5 @@
1
+---
2
+"gitbook": patch
3
4
+
5
+Revert contentref anchor title
packages/gitbook/src/lib/references.tsx
@@ -165,13 +165,7 @@ export async function resolveContentRef(
165
if (document) {
166
const block = getBlockById(document, anchor);
167
if (block) {
168
- // If the anchor points to the current page, we just resolve the text from the block.
169
- // This avoids showing the page title twice.
170
- if (isCurrentPage) {
171
- text = `#${getBlockTitle(block)}`;
172
- } else {
173
- text = `${page.title} #${getBlockTitle(block)}`;
174
- }
+ text = getBlockTitle(block);
175
}
176
177
0 commit comments