In manifest.json you set a scope, which determines which links will open in the PWA and which will open in the browser:
scope parameter in PWA Manifest
Edit: Explanation as well as examples are right on the page linked above.... But I can paste them here for you, if that helps?
The scope member is a string that defines the navigation scope of this web application's application context. It restricts what web pages can be viewed while the manifest is applied. If the user navigates outside the scope, it reverts to a normal web page inside a browser tab or window.
If the scope is a relative URL, the base URL will be the URL of the manifest.
Relative Scope: "scope": "/app/"
Limiting Scope to Domain: "scope": "https://example.com/"
Combining the above examples: "scope": "https://example.com/subdirectory/"