Take pathname from browser, not from server.