Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Don't generate post slugs for Ghost >= 0.8.0 #122

Open
vickychijwani opened this issue May 15, 2016 · 0 comments
Open

Don't generate post slugs for Ghost >= 0.8.0 #122

vickychijwani opened this issue May 15, 2016 · 0 comments

Comments

@vickychijwani
Copy link
Owner

Starting with Ghost 0.8.0, the Ghost backend automatically updates the post slug to match the title, unless it's been changed manually or the post has been published at least once. This pretty much eliminates the need for our own slug generation logic.

So, this code should not be executed for >= 0.8.0 and removed once we stop supporting prior versions altogether.

vickychijwani added a commit that referenced this issue Aug 22, 2016
This is similar to Ghost's in-built slug update logic since 0.8.0
(see TryGhost/Ghost#6631), with some differences:

- The slug is updated even if a post is unpublished and then published
  again with a new title

- The slug is only updated on publish, not on every save

- If a custom slug was set on the draft, it will be overridden upon
  publishing

Refs: #122, #130
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant