If you add punctuation to the end of a slug (slug!) so that the server replies with slug-2, the slug field doesn't update and the post is not saved.
hello, you would put hello! in the URL fieldhello-2@kevinansfield - I've investigated the issue some and here's what I've found.
hello! in the slug field, it returns hello-2 // if the candidate slug is the same as the existing slug except
// for the incrementor then the existing slug should be used
if (isNumber(check) && check > 0) {
if (slug === slugTokens.join('-') && serverSlug !== newSlug) {
this.set('slugValue', slug);
return;
}
}
I'm not sure what the expected behaviour is here. The original change there was made as part of this commit - https://github.com/TryGhost/Ghost-Admin/commit/e772430bd6ac8d32ba4029e96087c53e261c182a#diff-30dc1eff6ae6709c67989797bd574a92
@kevinansfield - Hi, any updates on this? How would you like me to proceed?
@kevinansfield I'd like to take this as my first PR if possible!
This doesn't seem to be a problem with 2.1.4.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
@kevinansfield - I've investigated the issue some and here's what I've found.
hello!in the slug field, it returnshello-2I'm not sure what the expected behaviour is here. The original change there was made as part of this commit - https://github.com/TryGhost/Ghost-Admin/commit/e772430bd6ac8d32ba4029e96087c53e261c182a#diff-30dc1eff6ae6709c67989797bd574a92