Convert history token (from # to pushState) if required