Angular URL Routing Bypass

How to get around the routing provided by angular? For example, in the angular routing settings I installed $routeProvider.otherwise({redirectTo : '/someurl'});.

I want a specific request (generated by a user by clicking on a specific link in HTML) to go to my web server and not be redirected /someurlto angular routing. How to do it?

+4
source share
1 answer

From $ location docs :

In the following cases, the links are not rewritten; instead, the browser will reload the page completely at the original link.

Links containing the target element. Example:<a href="/ext/link?a=b" target="_self">link</a>

Absolute links that go to another domain. Example:<a href="http://angularjs.org/">link</a>

, '/', , . : <a href="/not-my-base/link">link</a>

+4

All Articles