improve token rewriting

This commit is contained in:
Kevin Pham
2023-11-28 07:37:28 -06:00
parent 214790f905
commit 9d31f7eb59
2 changed files with 11 additions and 4 deletions

View File

@@ -196,6 +196,7 @@ func handleDocumentRelativePath(attr *html.Attribute, baseURL *url.URL) {
relativePath,
)
attr.Val = escape(attr.Val)
attr.Val = fmt.Sprintf("/%s", attr.Val)
log.Printf("doc rel url rewritten-> '%s'='%s'", attr.Key, attr.Val)
}