docs(guide/$location): fix a typo

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

Closes #8012