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

Commit f448665

Browse files
committed
Fix onSSR break
1 parent 35d217d commit f448665

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/aleph.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export class Aleph implements IAleph {
603603

604604
const path = loc.pathname + (loc.search || '')
605605
const [_, data] = await this.#renderer.cache(routePath, path, async () => {
606-
return await this.#renderer.renderPage(router, nestedModules)
606+
return await this.#renderPage(router, nestedModules)
607607
})
608608
return data
609609
}
@@ -636,10 +636,9 @@ export class Aleph implements IAleph {
636636
}
637637

638638
async #renderPage(url: RouterURL, nestedModules: string[]): Promise<[string, Record<string, SSRData> | null]> {
639-
const href = url.toString()
640639
let [html, data] = await this.#renderer.renderPage(url, nestedModules)
641640
for (const callback of this.#ssrListeners) {
642-
const ret = callback(href, html)
641+
const ret = callback(url.toString(), html)
643642
html = ret.html
644643
}
645644
return [html, data]

0 commit comments

Comments
 (0)