Skip to content

Commit

Permalink
fix(docs-infra): remove extra slash from JSON-LD data (angular#50140)
Browse files Browse the repository at this point in the history
Remove double slash from the "@id" field.

PR Close angular#50140
  • Loading branch information
jakovljevic-mladen authored and thePunderWoman committed May 23, 2023
1 parent 34d7301 commit 3152c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/tools/transforms/templates/api/base.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@type": "BreadcrumbList",
"itemListElement": [
{%- for crumb in doc.breadCrumbs %}{$ comma() $}
{ "@type": "ListItem", "position": {$ loop.index $}, "item": { "@id": "https://angular.io/{$ crumb.path $}", "name": "{$ crumb.text $}" } }{% endfor %}
{ "@type": "ListItem", "position": {$ loop.index $}, "item": { "@id": "https://angular.io{% if crumb.path.startsWith('/') %}{$ crumb.path $}{% else %}{$ '/' + crumb.path $}{% endif %}", "name": "{$ crumb.text $}" } }{% endfor %}
]
}
</script>
Expand Down

0 comments on commit 3152c4d

Please sign in to comment.