Skip to content

Commit

Permalink
Add support for using /edit in all urls and fixed a bug with validati…
Browse files Browse the repository at this point in the history
…ng urls when editing
  • Loading branch information
Mathachew committed Sep 24, 2016
1 parent 9a2ad44 commit 3f0b491
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/built/assets/ghost.js
Expand Up @@ -14847,7 +14847,7 @@ define('ghost-admin/services/slug-generator', ['exports', 'ember-service', 'rsvp
return resolve(''); 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) { return this.get('ajax').request(url).then(function (response) {
var _response$slugs = _slicedToArray(response.slugs, 1); var _response$slugs = _slicedToArray(response.slugs, 1);
Expand Down

0 comments on commit 3f0b491

Please sign in to comment.