Skip to content

Commit 1f633d8

Browse files
authored
Merge pull request #1384 from ember-learn/link-directly
make the deprecation anchor § link directly to the id route
2 parents dfd2c6d + 866bbc0 commit 1f633d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/templates/components/main-layout.hbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
{{#each result.contents as |content|}}
1313
<DeprecationArticle @model={{content}}>
1414
<h3 id="{{id-for-deprecation (or content.displayId content.id) content.anchor}}">
15-
<a href="#{{id-for-deprecation (or content.displayId content.id) content.anchor}}" title={{content.title}} class="toc-anchor">
16-
§
17-
</a>
15+
<LinkTo @route="id" @model={{content.id}} title={{content.title}} class="toc-anchor">§</LinkTo>
1816
{{markdown-to-html
1917
content.title
2018
extensions="no-wrapper"

0 commit comments

Comments
 (0)