Skip to content

Commit

Permalink
[WEB-4281] Fix duplicate objectIDs being generated in Algolia indexin…
Browse files Browse the repository at this point in the history
…g job (#20956)

* package bump

* use order when generating object ID

* revert package pointer
  • Loading branch information
bgdeutsch authored and MaelNamNam committed Jan 17, 2024
1 parent d468d83 commit 4bb2a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/algolia/page-sections.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{{- if gt (len $c) 2 -}}
{{- $full_url := print $page.Permalink "#" ($section_header | anchorize) -}}
{{- $relpermalink := print $page.RelPermalink "#" ($section_header | anchorize) -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.File.Lang "_" ($section_header | anchorize) "_" $i) -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.File.Lang "_" ($section_header | anchorize) "_" $i "_" $order) -}}
{{- $hugo_context.Scratch.Add "algoliaindex" (
dict "objectID" $object_id
"title" $title
Expand Down

0 comments on commit 4bb2a6f

Please sign in to comment.