Fix get_permalink helper to have max 40 char.