hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit c4bcdebc595cc3d6c6abcddb6e0870057345daae
parent e2744d403c8b81c4d33f6bc54f0905ddb793590a
Author: Steve Francia <steve.francia@gmail.com>
Date:   Sat, 17 Aug 2013 21:04:51 -0700

Merge pull request #44 from cactus/avoid-redirect-with-slugs

avoid possible redirects with non-ugly slug urls
Diffstat:
Mhugolib/page.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -192,7 +192,7 @@ func (p *Page) Permalink() template.HTML {
 		if p.Site.Config.UglyUrls {
 			return template.HTML(MakePermalink(string(p.Site.BaseUrl), strings.TrimSpace(p.Section)+"/"+p.Slug+"."+p.Extension))
 		} else {
-			return template.HTML(MakePermalink(string(p.Site.BaseUrl), strings.TrimSpace(p.Section)+"/"+p.Slug))
+			return template.HTML(MakePermalink(string(p.Site.BaseUrl), strings.TrimSpace(p.Section)+"/"+p.Slug+"/"))
 		}
 	} else if len(strings.TrimSpace(p.Url)) > 2 {
 		return template.HTML(MakePermalink(string(p.Site.BaseUrl), strings.TrimSpace(p.Url)))