Skip to content
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

Custom protocol support #262

Open
olanod opened this issue Mar 26, 2021 · 1 comment
Open

Custom protocol support #262

olanod opened this issue Mar 26, 2021 · 1 comment

Comments

@olanod
Copy link

olanod commented Mar 26, 2021

Not sure if this is supposed to work out of the box or explicitly forbidden but I imagine a nice to have feature would be to support navigation to an "unknown page", say I embed a shopping cart in a web site but I don't want to restrict users to a specific shopping cart, it should be the one of their preference.
If the URL is a custom protocol registered with navigator.registerProtocolHandler i.e. src="web+cart:foo" the portal should load the website that registered that protocol. But what if there is no page registered for said protocol? could there be a fallback URL or the portal being able to host <source> elements? or is an event emitted by the portal if the src is invalid or cannot be navigated to?

@jeremyroman
Copy link
Collaborator

How do <a> link navigations deal with this case? It probably would make sense for portals to behave similarly.

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

No branches or pull requests

2 participants