Skip to content

Commit

Permalink
fix: do not transform the baseURL, leave it as it is
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 3, 2024
1 parent 6d97388 commit 49b9bca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/search/js/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ class Engine {
// backward compatibility
pages = pages.concat(data)
} else {
const baseURL = data.baseURL.replace(/\/$/, "")
const siteIdx = this.sites.push({baseURL: baseURL}) - 1
const siteIdx = this.sites.push({baseURL: data.baseURL}) - 1
pages = pages.concat(data.pages.map((page) => {
return {...page, site: siteIdx}
}))
Expand Down

0 comments on commit 49b9bca

Please sign in to comment.