Fixes permalink according to post.thor