docs(guide/$location): fix a typo

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