update ws url to match current page