fix: homepage path should be removed during ssr build

pull/2997/head
zonemeen 3 years ago
parent 9cac3b3ae8
commit 3eda400351

@ -19,7 +19,9 @@ export { inBrowser } from '../shared'
* Join two paths by resolving the slash collision.
*/
export function joinPath(base: string, path: string) {
return `${base}${path}`.replace(/\/+/g, '/')
return `${base}${path}`
.replace(/\/+/g, '/')
.replace(/\bindex(?:\.html)?$/, '')
}
/**

Loading…
Cancel
Save