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.
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.