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.
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.