fix post link broken problem on pagination