#3 parse url and get pathname.