Probably shouldn't use a URL-encoded character in my placeholder, huh

This commit is contained in:
Seednode 2023-11-07 20:14:27 -06:00
parent e22c171b29
commit 0d43dbeeb1
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import (
)
const (
ReleaseVersion string = "3.2.4"
ReleaseVersion string = "3.2.5"
)
var (

View File

@ -92,11 +92,11 @@ Loop:
}
func pathUrlEscape(path string) string {
placeholder := strings.Replace(path, "/", "<path_placeholder>", -1)
placeholder := strings.Replace(path, "/", "path_placeholder", -1)
escaped := url.QueryEscape(placeholder)
return strings.Replace(escaped, "<path_placeholder>", "/", -1)
return strings.Replace(escaped, "path_placeholder", "/", -1)
}
func paginateSorted(path, first, last, queryParams string, regexes *regexes, formats types.Types) (string, error) {