mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
d732f83a9f
ref https://linear.app/tryghost/issue/ENG-1211 - the post slug now re-generates based on the post title for draft posts unless manually set - updated unit tests to be a bit more comprehensive It's frequently the case that draft posts might have WIP titles. We would generate a post slug based on the title and never change it, so unless writers remembered to come back in to update it for their final post, it could look off to readers. This should make that a bit more intelligent. Going forward, we will change the slug unless we expect it to be a custom slug (user-set in the side panel). If the title is cleared out and saved, we will also reset it. We will only ever automatically generate & change the slug for draft posts. |
||
---|---|---|
.. | ||
acceptance | ||
helpers | ||
integration | ||
unit | ||
.eslintrc.js | ||
index.html | ||
test-helper.js |