proper check + also in edit post #119

- better check for no slug selected
- do the same for the 'view post' link in edit post page