Skip to content

Commit d100f1b

Browse files
gkalpakalexeagle
authored andcommitted
build(aio): fix API docs breadcrumbs (angular#22446)
This also prevents some extra `<a>` elements inserted by the browser's trying to fix the HTML structure, which also fixes the `.header-link` added in ToC. Fixes angular#22387 Closes angular#22437 PR Close angular#22446
1 parent 4bd3e5f commit d100f1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aio/tools/transforms/templates/api/base.template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</script>
2323
{% for crumb in doc.breadCrumbs %}{% if not loop.last %}
2424
{$ slash() $}
25-
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}<a>{% else %}{$ crumb.text $}{% endif %}
25+
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}</a>{% else %}{$ crumb.text $}{% endif %}
2626
{% endif %}{% endfor %}
2727
</div>
2828
<header class="api-header">
@@ -43,4 +43,4 @@ <h1>
4343
<div class="api-body">
4444
{% block body %}{% endblock %}
4545
</div>
46-
</article>
46+
</article>

0 commit comments

Comments
 (0)