I am facing a dilemma with an external URL that I need to access, created by another client. My task is to make a call to this external URL and then return to the home page seamlessly. Here's what I have tried:
<button class="altro" title=" (click)="effettuaLoginExternal($event)">login</button>
In my TypeScript file, I have implemented the following function:
effettuaLoginExternal(event) {
window.location.href="/external/login";
}
The issue arises when I use
window.location.href="/external/login";
- it opens the external URL where I can input my username and password, but upon clicking "ok", I am unable to navigate back to the Angular application. Unfortunately, I do not have access to the code of the external URL. Can anyone provide assistance?