Skip to content

Support for relative URLs #9

Description

@samanson123

The package doesn't seem to be work with applications that require relative URLs.

For example, I intend to host my application as an IIS web application meaning it won't be hosted under the root DNS. The BlazorJSComponents.lib.module.js file imports from '/_content/BlazorJSComponents/component.mjs' which causes a 404 error.

Tried running under .NET 9, Blazor static SSR hosted on IIS.

I've had to do a bit of hacky fix in the meantime where I generate the default import map as a string using HtmlRenderer and then replace the existing map which uses ./ at the start (the default it expects) to / as is in the JavaScript file and then map back to ./

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions