angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Navigate to external URL using router.navigate

Open krischandra opened this issue 8 years ago • 3 comments

I have a scenario where i need to apply can deactivate on component. It is working fine for internal URL. When i click on button(That navigates to external URL), I used window.open(URL) to open that URL. As a result can deactivate is not getting applied for that Button.

Is there any way i can route to external URL using route.navigate().

Versions

node version: 6.1.0
NPM version: 5.6.0
Windows 10

Repro steps

Click on button that navigates to external URL this.route.navigate(URL)

Observed behavior

Not navigating to external URL

Desired behavior

Should go to external URL with out redirecting to dummy component.

krischandra avatar Jan 07 '18 21:01 krischandra

This is not related to the cli.

If you think this is a bug or feature request, please move this issue to the angular issue tracker

jotatoledo avatar Jan 08 '18 13:01 jotatoledo

Hello, we reviewed this issue and determined that it does not fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on a site such as StackOverflow.

If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.

clydin avatar Jan 08 '18 16:01 clydin

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.