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

Links should support for custom url protocols (myproto://) #317

Open
jimkring opened this issue May 20, 2024 · 0 comments
Open

Links should support for custom url protocols (myproto://) #317

jimkring opened this issue May 20, 2024 · 0 comments
Milestone

Comments

@jimkring
Copy link
Contributor

jimkring commented May 20, 2024

Right now, it appears that Link components do not support custom url schemes/protocols (e.g. the myapp:// in myapp://some/parameters) shown below:

This doesn't work...

from fastui import components as c

c.Link(
    components=[c.Text(text='Open My App')],
    on_click=GoToEvent(url='myapp://some/parameters'),
)

I would expect this to result in the browser navigating to myapp://additional/data but it navigates to myfastuisite.com/somepage/myproto://additional/data

It's being interpreted as a relative path instead of a complete uri.

See here for info about uri schems / custom uri protocols:

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