InAppBrowser error passing the whole path of android system or localhost


#1

html:

    <button ion-button clear small color="primary" icon-left (click)="goToCompanyWebsite(job.company.data.company_website)">
      <ion-icon name="cloud-circle"></ion-icon>
      Website
    </button>

.ts

  goToCompanyWebsite(website){
      console.log(website)      /////// www.expatriate.com
      new InAppBrowser(website, '_blank');
   }

When I click on the button while test , it open a new web page however, it includes the localhost path as well localhost:8100/www.expatiate.com and this leads to error.
Also I tried testing it on android phone , and this is what I get

        file:///android_assest/www/www.expatriate.com 

how to fix this problem, thanx


#2

found the problem… it should be new InAppBrowser(https://${website}, ‘_blank’)