Permalink
Browse files

Add support for using /edit in all urls and fixed a bug with validati…

…ng urls when editing
  • Loading branch information...
Mathachew committed Sep 24, 2016
1 parent 9a2ad44 commit 3f0b491cfb426f444db638245ead924db5679cec
@@ -14847,7 +14847,7 @@ define('ghost-admin/services/slug-generator', ['exports', 'ember-service', 'rsvp
return resolve('');
}

url = this.get('ghostPaths.url').api('slugs', slugType, encodeURIComponent(textToSlugify));
url = this.get('ghostPaths.url').api('slugs', slugType) + '?name=' + encodeURIComponent(textToSlugify);

return this.get('ajax').request(url).then(function (response) {
var _response$slugs = _slicedToArray(response.slugs, 1);
Oops, something went wrong.

0 comments on commit 3f0b491

Please sign in to comment.