Added a check on the client side when editing post to avoid duplicate URL when submitting a post.