Correctly output the permalink.