Skip to content

Change behaviour for custom protocol links in blazor apps #29259

@MarvinKlein1508

Description

@MarvinKlein1508

Is your feature request related to a problem? Please describe.

I want to link a custom protocol to a hyperlink. Whenever the user clicks on it, the SignalR connection will be closed and established again automatically. A workaround for this is to set target="_blank" for the hyperlink but this leaves the user with an open blank tab.

Describe the solution you'd like

It already works fine for the mailto: protocol, so why do other protocols behave differently? However, the mailto: protocol results in the same if you call it with navigationManager.NavigateTo()

Sometimes it is necessary to load data first which you want to forward with the protocol. So I think the NavigateTo() should be able to do the same thing just without closing the SignalR connection.

Additional context

I created a small repo to show exactly what I mean

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureinvestigateseverity-blockingThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions