If no slug is defined, save ID as slug so link is always a valid link

Fixes #347