Fix permalink if page is imported