Generates a short url for posts.