Pages and posts urls have to be calculated differently.