Ionic capacitor browser Api opening new tab

I am using capacitor browser API to open a window but the problem is it is opening new tab not staying on the current tab. How to prevent this?

Thank you in advance

Here is the code

import { Plugins } from '@capacitor/core';
const { Browser } = Plugins;

async test(){
  await{url : 'http://localhost:8100/tabs/tab2'});



  <ion-button (click)="test()">test</ion-button>

@Pratikjaiswa15 Did u get solution to this ?