Update URL for pathname.