How to make closable link redirect to source url using WebAuth

Hi,

Here is abit of snippet from my code:

  auth0 = new auth0.WebAuth({
    clientID: AUTH_CONFIG.clientID,
    domain: AUTH_CONFIG.domain,
    responseType: 'token id_token',
    audience: `https://${AUTH_CONFIG.domain}/userinfo`,
    redirectUri: 'http://localhost:4200/callback',
    scope: 'openid'
  });

  constructor(public router: Router) {}

  public login(): void {
    this.auth0.authorize();
  }

and i tried to enable the hosted login page from my account because i thought that is how i can enable the close icon by setting closable: true. Problem i got is if i click the “Close” icon on top right corner it simply close the dialog but it stays on my hosted login URL and not redirecting back to my original URL or even callback uri.

can you please shed a light for me please on how to do this.

Thanks