PWA | When click on the link to open appleid.apple.com, its redirect to app store

I am facing a strange issue, this is related to PWA apps. So, when the user opens the link in the browser and then clicks on appleid.apple.com then it's working fine but when the user adds the link on the home screen and launches the app from the home screen then clicks on appleid.apple.com then its redirects to AppStore.

(https://i.stack.imgur.com/ikV5Q.png)

I tried every possible solution (windows.open, changed target, use a href), but nothing seems to be working.

I want if the user clicks on the appleid.apple.com from the home screen app then it should open in InAppBrowser, this should not redirected to AppStore