Skip to content

[Wami] Fix protocol_hanlders definition #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2025

Conversation

zhangkun902
Copy link
Contributor

@zhangkun902 zhangkun902 commented May 26, 2025

Standard protocol_hanlders.url should all be relative URLs that are within the scope of the app. This PR aims to fix the issue.

With ., manifest check will fail in pwabuilder.com
image

After replacing ., the error will be fixed.
image

@@ -32,7 +32,7 @@
"protocol_handlers": [
{
"protocol": "web+wami",
"url": "./?url=%s"
"url": "/?url=%s"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this change, but did you test it once packaged?
The potential problem I see is that the Demos repo is hosted at GitHub pages, and the demo URL is: https://microsoftedge.github.io/Demos/wami/.
If you register a url that starts with /, it will end up going to https//microsoftedge.github.io/(i.e. theDemos/wami` part will be removed).

@captainbrosset captainbrosset merged commit 8fdb142 into MicrosoftEdge:main May 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants