From 6bdb6102ace122fd2a9ee8743866033ac9c94777 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Tue, 4 Feb 2020 15:47:29 +0100 Subject: Fixes bugs with navbar generating --- core/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/renderers/html/HtmlRenderer.kt b/core/src/main/kotlin/renderers/html/HtmlRenderer.kt index 47f5d066..376ce5c8 100644 --- a/core/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -174,7 +174,7 @@ open class HtmlRenderer( filter { it.substringBefore('?').substringAfterLast('.') == "css" } .forEach { link(rel = LinkRel.stylesheet, href = page.root(it)) } filter { it.substringBefore('?').substringAfterLast('.') == "js" } - .forEach { script(type = ScriptType.textJavaScript, src = it) { async = true } } + .forEach { script(type = ScriptType.textJavaScript, src = page.root(it)) { async = true } } } script { unsafe { +"""var pathToRoot = "${locationProvider.resolveRoot(page)}";""" } } } -- cgit