-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-jsinteropThis issue is related to JSInterop in BlazorThis issue is related to JSInterop in Blazorgood first issueGood for newcomers.Good for newcomers.help wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
On firefox, my odd setup (vite.js serving blazor and ts files), sometimes trigger an error.
While I have not pinpointed the cause, it trigger a bug here:
here document.baseURI can return an URI with a hash, making the concatenation on the hash instead of the path part of the URI. When importing files, the hash is truncated.
This lead to this:

Expected Behavior
The concatenation works and this function successfuly import the file.
Steps To Reproduce
N/A don't know how to reproduce, happens randomly
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-blazor-jsinteropThis issue is related to JSInterop in BlazorThis issue is related to JSInterop in Blazorgood first issueGood for newcomers.Good for newcomers.help wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue