docs(guide/$location): Fix a typo

Change "window.location.path" to "window.location.pathname".