{"action":"created","issue":{"url":"https://api.github.com/repos/OpenHunting/openhunt/issues/89","labels_url":"https://api.github.com/repos/OpenHunting/openhunt/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/OpenHunting/openhunt/issues/89/comments","events_url":"https://api.github.com/repos/OpenHunting/openhunt/issues/89/events","html_url":"https://github.com/OpenHunting/openhunt/issues/89","id":123641295,"number":89,"title":"after editing name, the old slug errors","user":{"login":"mhurwi","id":471126,"avatar_url":"https://avatars.githubusercontent.com/u/471126?v=3","gravatar_id":"","url":"https://api.github.com/users/mhurwi","html_url":"https://github.com/mhurwi","followers_url":"https://api.github.com/users/mhurwi/followers","following_url":"https://api.github.com/users/mhurwi/following{/other_user}","gists_url":"https://api.github.com/users/mhurwi/gists{/gist_id}","starred_url":"https://api.github.com/users/mhurwi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhurwi/subscriptions","organizations_url":"https://api.github.com/users/mhurwi/orgs","repos_url":"https://api.github.com/users/mhurwi/repos","events_url":"https://api.github.com/users/mhurwi/events{/privacy}","received_events_url":"https://api.github.com/users/mhurwi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenHunting/openhunt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-23T11:13:57Z","updated_at":"2015-12-28T05:26:53Z","closed_at":null,"body":"example: I fixed 'newsletterstah' to be 'newslettersstash'\r\n\r\nthe link in the audit log points to 'newsletterstah', and navigating to that link gets an application error.\r\n\r\n2 possibilities to fix this: \r\n\r\n1- audit log should provide working link to new slug\r\n2- keep history of old slugs, and redirect them to the new slugs"},"comment":{"url":"https://api.github.com/repos/OpenHunting/openhunt/issues/comments/167486943","html_url":"https://github.com/OpenHunting/openhunt/issues/89#issuecomment-167486943","issue_url":"https://api.github.com/repos/OpenHunting/openhunt/issues/89","id":167486943,"user":{"login":"jacquescrocker","id":206662,"avatar_url":"https://avatars.githubusercontent.com/u/206662?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquescrocker","html_url":"https://github.com/jacquescrocker","followers_url":"https://api.github.com/users/jacquescrocker/followers","following_url":"https://api.github.com/users/jacquescrocker/following{/other_user}","gists_url":"https://api.github.com/users/jacquescrocker/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquescrocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquescrocker/subscriptions","organizations_url":"https://api.github.com/users/jacquescrocker/orgs","repos_url":"https://api.github.com/users/jacquescrocker/repos","events_url":"https://api.github.com/users/jacquescrocker/events{/privacy}","received_events_url":"https://api.github.com/users/jacquescrocker/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T05:26:53Z","updated_at":"2015-12-28T05:26:53Z","body":"i think the real bug here is that `set_slug` should only be set on `after_create` not `after_save`"}}