Monorepo for Tangled tangled.org

appview/pages/markup: Use QueryEscape, not PathEscape, for query params

Signed-off-by: Runxi Yu <me@runxiyu.org>

Changed files
+1 -1
appview
pages
markup
+1 -1
appview/pages/markup/markdown.go
··· 249 249 repoName := fmt.Sprintf("%s/%s", rctx.RepoInfo.OwnerDid, rctx.RepoInfo.Name) 250 250 251 251 query := fmt.Sprintf("repo=%s&ref=%s&path=%s&raw=true", 252 - url.PathEscape(repoName), url.PathEscape(rctx.RepoInfo.Ref), actualPath) 252 + url.QueryEscape(repoName), url.QueryEscape(rctx.RepoInfo.Ref), actualPath) 253 253 254 254 parsedURL := &url.URL{ 255 255 Scheme: scheme,