How to open a PWA with path and query parameters using ShellExecute

13 hours ago 3
ARTICLE AD BOX

I want to open a web app installed through Microsoft Edge using ShellExecute. I want to pass a path and some query parameters to the web app but this doesn't seem to work.

For example, I installed YouTube as a web app and have turned on "Let this application open links to www.youtube.com" in Edge's app settings.

#include <Windows.h> #include <shellapi.h> int main() { ShellExecute(nullptr, nullptr, L"https://www.youtube.com/watch?v=jNQXAC9IVRw", nullptr, nullptr, SW_SHOW); }

It correctly opens the web app, but it doesn't navigate to the video.

When I uninstall the YouTube web app, Edge opens as expected and the path and parameters are passed correctly and the video is shown.

Am I missing something? Thanks.

Read Entire Article