I am having an angular 5 application running on localhost:3000 and on click of logout I need to route back to completely different application on another port. I am using
this.router.navigateByUrl('localhost:3000/home');
But what it does, its not going to new URL. In fact its appending that URL to my current route i.e.localhost:3001/home/localhost:3000/home
How can I just navigate to different app localhost:3000/home
This is what I have given on logout button click
this.router.navigateByUrl('localhost:3000/home');