Skip to content

Commit

Permalink
fix: do not transform the baseURL, leave it as it is (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Nov 3, 2024
1 parent 6d97388 commit e9b39f8
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 e9b39f8

Please sign in to comment.