Fix preview for when project.id contains whitespaces