{"action":"created","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/8736","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8736/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8736/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8736/events","html_url":"https://github.com/TryGhost/Ghost/issues/8736","id":244781286,"number":8736,"title":"Bug: Slug is not updating on drafts","user":{"login":"ErisDS","id":101513,"avatar_url":"https://avatars1.githubusercontent.com/u/101513?v=4","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"labels":[{"id":82875493,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/admin-client","name":"admin-client","color":"e1563f","default":false},{"id":38409089,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/bug","name":"bug","color":"EB2C00","default":true},{"id":446319256,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/LTS","name":"LTS","color":"fbca04","default":false},{"id":629591456,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/post%201.0.0","name":"post 1.0.0","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-21T20:55:34Z","updated_at":"2017-07-25T10:52:55Z","closed_at":null,"body":"This old chestnut has reared its head again. If you don't enter a title and it gets set to untitled, changing the title to something sane doesn't update the slug.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Open the editor (pre or post Ghost-Admin#798)\r\n2. Do not enter a title\r\n3. Ensure the post get saved (cmd+s)\r\n4. Enter a title\r\n5. Check your slug\r\n\r\nAfaik the logic is meant to be that published posts don't get updated slugs, but that drafts do.\r\n"},"comment":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments/317702045","html_url":"https://github.com/TryGhost/Ghost/issues/8736#issuecomment-317702045","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8736","id":317702045,"user":{"login":"ErisDS","id":101513,"avatar_url":"https://avatars1.githubusercontent.com/u/101513?v=4","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"created_at":"2017-07-25T10:52:55Z","updated_at":"2017-07-25T10:52:55Z","body":"Afaik the behaviour should be:\r\n\r\nWhilst in draft state, if the title is changed and the user has not set a custom slug, then the slug should be updated.\r\n\r\nIf either the user has set a custom slug, or the post is not a draft (i.e. is published, scheduled or any possible future state) then we no longer make changes to the slug when the title changes.\r\n\r\nThe server side code has logic to handle this here: https://github.com/TryGhost/Ghost/blob/master/core/server/models/post.js#L289\r\n\r\nIt seems like something that perhaps never got ported to Ghost-Admin to match the original server side behaviour?\r\n\r\n"}}
{"actor":{"display_login":"ErisDS"}}