fix generate url in 'post-permalink route