diff options
Diffstat (limited to 'helpers/url.go')
-rw-r--r-- | helpers/url.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/url.go b/helpers/url.go index 6f4242b09..8c39bc4fa 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -105,7 +105,7 @@ func (p *PathSpec) URLize(uri string) string { return p.URLEscape(p.MakePathSanitized(uri)) } -// URLizeFilename creates an URL from a filename by esacaping unicode letters +// URLizeFilename creates an URL from a filename by escaping unicode letters // and turn any filepath separator into forward slashes. func (p *PathSpec) URLizeFilename(filename string) string { return p.URLEscape(filepath.ToSlash(filename)) @@ -280,7 +280,7 @@ func AddContextRoot(baseURL, relativePath string) string { newPath := path.Join(url.Path, relativePath) - // path strips traling slash, ignore root path. + // path strips trailing slash, ignore root path. if newPath != "/" && strings.HasSuffix(relativePath, "/") { newPath += "/" } |