VenusInterns / BlogTemplate

MIT License
208 stars 38 forks source link

Slug Update Warning Fix #145

Closed julietdaniel closed 7 years ago

julietdaniel commented 7 years ago

Show a JavaScript slugUpdateWarning when the blog owner edits the title of a post and hits the Publish button. If the user clicks 'OK' (chooses to update the slug), then updateSlug is set to true and the slug is updated. If the user clicks 'Cancel' (chooses to keep the same slug), then updateSlug is set to false and the slug is not updated. slugUpdateWarning does not appear when a post is edited and saved as a draft, since there should be no external links to a draft.