Made permalink page work