What if pathName is '/'? Does that work?