From f37e5e3992f4526ab660b43d8aac8b0bafde7ecc Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 29 Sep 2016 10:06:21 -0400 Subject: fixing whitespace issue in URL path (slug) process --- management/manager/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/manager/process.go b/management/manager/process.go index ddae024..c759bf2 100644 --- a/management/manager/process.go +++ b/management/manager/process.go @@ -13,7 +13,7 @@ import ( // Slug returns a URL friendly string from the title of a post item func Slug(e editor.Editable) (string, error) { // get the name of the post item - name := e.ContentName() + name := strings.TrimSpace(e.ContentName()) // filter out non-alphanumeric character or non-whitespace slug, err := stringToSlug(name) -- cgit v1.2.3