Ionic 6 does not open any url

Hello, I have an application in IONIC 6 and I can’t open an external link for nothing. I used all possible libraries and nothing.

Is it something android or ionic? Because it looks like it’s a lock. No link opens.

Thanks for your help.

Have you tried using window.open?

e.g.

Assuming you are using angular…

In your view

<ion-button (click)="openExternal('https://google.com')">Open Google</ion-button>

In your component

openExternal(link) {
    window.open(link, '_system', 'location=yes'); 
    return false;
 }

thanks

Hello,

do you use Capacitor or Cordova or is it a PWA? For Capacitor and PWA <a href="https://google.com" target="_blank">Google</a> should work.