Skip to content

Commit

Permalink
Bug: url absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Nov 7, 2016
1 parent c89a077 commit 6ed093d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cms/operations/create.js
Expand Up @@ -12,7 +12,7 @@ var create = function(template, pathCreate, name, req, forceJson = {}, duplicate
var p = new Promise((resolve) => {
abeExtend.hooks.instance.trigger('beforeCreate', template, pathCreate, name, req, forceJson)

var postUrl = path.join(pathCreate, name)
var postUrl = path.join('/', pathCreate, name)
postUrl = coreUtils.slug.clean(postUrl)

var filePath = path.join(config.root, config.draft.url, postUrl)
Expand Down

0 comments on commit 6ed093d

Please sign in to comment.