Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 6f0c611

Browse files
authored
Fix the lang attribute of the <html> tag generated by SSG (#399)
1 parent 55d80d1 commit 6f0c611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/aleph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ export class Aleph implements IAleph {
14961496
}
14971497

14981498
// render route pages
1499-
await Promise.all(Array.from(paths).map(loc => ([loc, ...locales.map(locale => ({ ...loc, pathname: locale + loc.pathname }))])).flat().map(async ({ pathname, search }) => {
1499+
await Promise.all(Array.from(paths).map(loc => ([loc, ...locales.map(locale => ({ ...loc, pathname: '/' + locale + loc.pathname }))])).flat().map(async ({ pathname, search }) => {
15001500
if (this.isSSRable(pathname)) {
15011501
const [router, nestedModules] = this.#pageRouting.createRouter({ pathname, search })
15021502
if (router.routePath !== '') {

0 commit comments

Comments
 (0)