decide right post url by permalink format