shakyShane / browser-sync-spa

Better Single Page App support for BrowserSync
29 stars 15 forks source link

Fixed wrong path for angular's $location.path when using a base href #12

Closed bbuhler closed 3 years ago

bbuhler commented 7 years ago

I'm using a <base href="/client/"> for certain reasons.

Due to that the path provided to Angular's $location.path was not correct. It contained the the base path too (e.g. /client/profile instead of just /profile), which caused my web app to display the 404 error state.

That's why I removed the base href from pathname variable when it's avialable.