Skip to content

Blazor.server.js not respecting configureSignalR builder defined url/path for disconnnects #30316

Closed
@vflame

Description

@vflame

Not using <base href="~/">

I have the following in the layout:

<script src="~/_framework/blazor.server.js" autostart="false"></script>
    <script>
        Blazor.start({
            configureSignalR: function (builder) {
                builder.withUrl("/_blazor");
            }
        });
    </script>

When I navigate off the page, the browser is invoking:

https://www.mydomain.com/relative-path/_blazor/disconnect
instead of
https://www.mydomain.com/_blazor/disconnect

the blazor js client should respect the signalR configured path for all server invocations, not just negotiate and the websocket connection

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issuePillar: Technical DebtPriority:2Work that is important, but not critical for the releaseStatus: No Recent Activityarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-servergood first issueGood for newcomers.help candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions