diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-02 23:46:36 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-02 23:46:36 +0200 |
commit | 3dd949d956390478da83b44488b0a5f4a9ebeb86 (patch) | |
tree | 14d7112376a3f45a7c59f482e1c9e8bd8adbbe22 /tpl/urls/urls.go | |
parent | a40d1f6ed2aedddc99725658993258cd557640ed (diff) |
tpl/urls: Make urlize return a string
Like it did in 0.20.
Diffstat (limited to 'tpl/urls/urls.go')
-rw-r--r-- | tpl/urls/urls.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/urls/urls.go b/tpl/urls/urls.go index 5d1077785..ee4457e76 100644 --- a/tpl/urls/urls.go +++ b/tpl/urls/urls.go @@ -54,12 +54,12 @@ func (ns *Namespace) RelURL(a interface{}) (template.HTML, error) { return template.HTML(ns.deps.PathSpec.RelURL(s, false)), nil } -func (ns *Namespace) URLize(a interface{}) (template.URL, error) { +func (ns *Namespace) URLize(a interface{}) (string, error) { s, err := cast.ToStringE(a) if err != nil { return "", nil } - return template.URL(ns.deps.PathSpec.URLize(s)), nil + return ns.deps.PathSpec.URLize(s), nil } type reflinker interface { |