Skip to content

Commit

Permalink
removing domain from search results urls to ensure router links
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 16, 2024
1 parent 30a7b29 commit 519ed73
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ export default defineComponent({
page.content_type = handle
page.id = page._id
page.score = page._score
// ensure router links
page.url = page._source.url
? page._source.url.replace(/^[^:]+:\/\/[^/?#]+/, '')
: undefined
page.title = page._source.title
page.type = pageType
page.topic = topic
Expand Down

0 comments on commit 519ed73

Please sign in to comment.