Skip to content
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
@andyneville

Description

@andyneville

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):

  1. create a file in the app folder called "test.html", put something in it you can recognize:
<html><body>Test</body></html>
  1. In partials/partial1.html, add this line:
<a href="/test.html">test</a>
  1. Open the site in a browser (http://localhost:4000/ for me using a simple node app). It redirects me to http://localhost:4000/#/view1 which looks fine.

  2. 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 to http://localhost:4000/#/view1

I'm in Chrome if that matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions