summaryrefslogtreecommitdiff
path: root/management/manager
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-09-29 10:06:21 -0400
committerSteve Manuel <nilslice@gmail.com>2016-09-29 10:06:21 -0400
commitf37e5e3992f4526ab660b43d8aac8b0bafde7ecc (patch)
tree4c0b1d37bc0dbf3a2ad454dbc0213ba38db01eb8 /management/manager
parentafe2ad4d1ead83b6d437fef57cc0feecaa5ac0ce (diff)
fixing whitespace issue in URL path (slug) process
Diffstat (limited to 'management/manager')
-rw-r--r--management/manager/process.go2
1 files changed, 1 insertions, 1 deletions
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)