Skip to content

Commit

Permalink
fix: tabsV2 tab slug (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Jun 17, 2024
1 parent 126dbde commit 2af74ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 0 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions servers/fdr/src/services/algolia/AlgoliaSearchRecordGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,23 @@ export class AlgoliaSearchRecordGenerator {
switch (tab.type) {
case "group":
return tab.items.flatMap((item) =>
this.generateAlgoliaSearchRecordsForNavigationItem(item, context),
this.generateAlgoliaSearchRecordsForNavigationItem(
item,
context.withPathPart({
name: tab.title,
urlSlug: tab.urlSlug,
skipUrlSlug: tab.skipUrlSlug,
}),
),
);
case "changelog":
return this.generateAlgoliaSearchRecordsForChangelogSection(tab, context);
return this.generateAlgoliaSearchRecordsForChangelogSection(
tab,
context.withPathPart({
name: tab.title ?? "Changelog",
urlSlug: tab.urlSlug,
}),
);
default:
return [];
}
Expand Down

0 comments on commit 2af74ec

Please sign in to comment.