Home > Mobile >  Web standard to open link in existing open tab
Web standard to open link in existing open tab

Time:01-26

On a desktop, if I have application A open and then in application B, click on a link to application A, it does not usually open a new application, instead the link opening is handled by the existing open instance of application A. Is this possible for a website? i.e. is there a way for a website domain to tell the browser that when a page to that website domain A is open in one of the browser's tabs, that a user's click on a link for that domain A from a different application or tab and domain, can be handled by the open tab for domain A?

CodePudding user response:

Not yet, but it's in development as a PWA capability based on Navigator.registerProtocolHandler(). You can implement something close to this behavior now using service workers and WindowClient.

  •  Tags:  
  • Related