Fix URL returned to user when previewing