Skip to content

Commit

Permalink
fix(docsearch): use absolute URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed May 14, 2020
1 parent fb10cc4 commit 3d95664
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/DocSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,16 +230,6 @@ export function DocSearchModal({
return Object.values(
groupBy(items, (item) => item.hierarchy.lvl1)
)
.map((items) => {
return items.map((item) => {
const url = new URL(item.url);

return {
...item,
url: item.url.replace(url.origin, ''),
};
});
})
.map(transformItems)
.map((hits) =>
hits.map((item) => {
Expand Down

0 comments on commit 3d95664

Please sign in to comment.