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

Fix the lang attribute of the <html> tag generated by SSG #399

Merged
merged 1 commit into from
Sep 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/aleph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ export class Aleph implements IAleph {
}

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