getState() should only return the pathname in the url.