fix native history pathname bug