A
A
Alex2016-07-26 13:56:05
JavaScript
Alex, 2016-07-26 13:56:05

How to make a link in Angular?

Hello.
I'm making a browser extension that uses angular route.
The extension has two pages:

/
/#message

And the link, from the root to the post page
<a href="#/message">Message</a>
The problem is this. If you open this link "in a new tab" in the extension, then the view page opens:
chrome-extension://ebapjgoekpbmdghph/index.html#/message

Is there a way to make it so that if you just click on the link, then the router will work and the page inside the extension will switch, and if you open it in a new tab, then the page with a different URL will open http://site/message?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question