diff --git a/assets/search/js/engine.ts b/assets/search/js/engine.ts index f354ab34342..f54397a1c75 100644 --- a/assets/search/js/engine.ts +++ b/assets/search/js/engine.ts @@ -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} }))