Skip to content

Commit 0e667a9

Browse files
authored
Merge pull request #45846 from dipesh-rawat/fix-api-ref-localization
Refine API reference page link retrieval mechanism to support localized pages
2 parents 84cb81a + f433940 commit 0e667a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/partials/docs/api-reference-links.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
<!-- Loop through sections -->
2929
{{- range $apiRefSection := $apiRefSections.Sections -}}
3030
{{- $apiRefDir := $apiRefSection.RelPermalink -}}
31+
{{- $fragmentApiRefDir := split $apiRefDir "/docs" -}}
32+
{{- $apiRefDir := printf "/docs%s" (index ($fragmentApiRefDir) 1) -}}
3133
{{- $apiReferenceFiles := site.GetPage $apiRefDir -}}
3234

3335
<!-- Loop through API reference files -->

0 commit comments

Comments
 (0)