This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Links to outside of Angular application are getting overridden #1051
Closed
Description
When I create a relative link to a page outside of my single page Angular app (e.g. <a href="/foo/bar">Click</a>
), there appears to be an Angular click handler which intercepts this link and won't let me follow it.
To recreate this in Angular seed (rc12):
- create a file in the app folder called "test.html", put something in it you can recognize:
<html><body>Test</body></html>
- In
partials/partial1.html
, add this line:
<a href="/test.html">test</a>
-
Open the site in a browser (
http://localhost:4000/
for me using a simple node app). It redirects me tohttp://localhost:4000/#/view1
which looks fine. -
Click on the "test" link, which should take you to the
http://localhost:4000/test.html
page. Instead, I see a brief flicker in the address bar and it just goes back tohttp://localhost:4000/#/view1
I'm in Chrome if that matters.
Metadata
Metadata
Assignees
Labels
No labels