FIX: Show error messages when adding permalinks in the admin UI (PR #12545)

Also, check for uniqueness of permalinks before attempting to save.

GitHub