PWA launched via webapp:// always loads homepage, not intended path

On iOS (16.4+), Safari PWA already on homepage, it’s now possible to open installed PWAs using the webapp:// URL scheme from Shortcuts or other apps.

Example:

webapp://myforum.example.com/t/topic-title/123

This correctly opens the Discourse PWA shell — however, the path is ignored, and it always loads the homepage instead.

Expected behavior:

The Discourse PWA should respect the incoming window.location.pathname on cold start, and load that route directly.

Actual behavior:

Only / is rendered, even though the requested URL included a path.

This makes deep linking into the PWA impossible (unless it was already running), which limits usefulness with iOS Shortcuts, widgets, NFC automations, etc.

Can this be fixed by adjusting Service Worker scope or initial routing behavior in the PWA shell?

Would love to see full support for deep linking via PWA!