Angularjs Normal Links with html5Mode

in HTML5 mode, there are three situations in which the A tag is not rewritten:
from the angular docs

  • Links that contain a target attribute. Example: <a href="https://stackoverflow.com/ext/link?a=b" target="_self">link</a>
  • Absolute links that point to a different domain Example: <a href="http://angularjs.org/">link</a>
  • Links starting with “https://stackoverflow.com/” that lead to a different base path when base is defined Example: <a href="https://stackoverflow.com/not-my-base/link">link</a>

so your case would be 1. add target="_self"

Leave a Comment