Having enabled successfully enabled html5mode on my web application, I accidentally broke a browser link to download some JSON from the server, since Angular now interprets it as a route.
Thanks to http://blog.panjiesw.com/posts/2013/09/angularjs-normal-links-with-html5mode/ for posting an explaining a full answer.
Adding target=”_self” to the link fixes it but here are the options from the Angular docs
In cases like the following, links are not rewritten; instead, the browser will perform a full page reload to the original link.
- Links that contain
<a href="/ext/link?a=b" target="_self">link</a>
- Absolute links that go to a different domain
- Links starting with ‘/’ that lead to a different base path