fix post link logic