a better way to check changes of url

Sorry...I just modify it.