diff options
Diffstat (limited to 'echo/controller/generic_template.go')
-rw-r--r-- | echo/controller/generic_template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/echo/controller/generic_template.go b/echo/controller/generic_template.go index 190182b..bd64304 100644 --- a/echo/controller/generic_template.go +++ b/echo/controller/generic_template.go | |||
@@ -80,7 +80,7 @@ func (h *GenericTemplateHandler) canonicalizeUrl(c echo.Context, tr glecho.Templ | |||
80 | path = "index.tpl" | 80 | path = "index.tpl" |
81 | } else if !strings.HasSuffix(path, ".html") { | 81 | } else if !strings.HasSuffix(path, ".html") { |
82 | p := fmt.Sprintf("%s.tpl", path) | 82 | p := fmt.Sprintf("%s.tpl", path) |
83 | if !tr.HaveTemplate(c, p) { | 83 | if !tr.HaveTemplate(p) { |
84 | path = fmt.Sprintf("%s/index.tpl", path) | 84 | path = fmt.Sprintf("%s/index.tpl", path) |
85 | } else { | 85 | } else { |
86 | path = p | 86 | path = p |