Skip to content

Commit

Permalink
fix(search): remove .html from search result links
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jan 15, 2025
1 parent 50a86bb commit 2632896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/search/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
bundlePath: `${base}/pagefind/`,
pageSize: 10,
processResult: (result: any) => {
if (dev && result.url) {
if (result.url) {
result.url = result.url.replace(/\.html$/, '');
}
Expand Down

0 comments on commit 2632896

Please sign in to comment.