From 3dd949d956390478da83b44488b0a5f4a9ebeb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 2 May 2017 23:46:36 +0200 Subject: [PATCH] tpl/urls: Make urlize return a string Like it did in 0.20. --- tpl/urls/urls.go | 4 ++-- 1 file 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 {