Skip to content

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

@jimkring

Description

@jimkring

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions