Skip to content

Customize the BasePath #46

@EilifAkerjordet

Description

@EilifAkerjordet

Hi, love the library, it has helped me a lot!

I have used it to hack together some Blazor WordPress-plugins. Locally it runs fine. I am running into issues however when running it on the WordPress server, as scripts are requested through {currentUrl}/_content/xxx instead of {domain}/wp-content/plugins/my-app/_content/xxx

Before hooking on this library this was easily solved by implementing a custom Blazor.start:

Blazor.start({
    loadBootResource: (type, name, defaultUri, integrity) => {
        const basePluginPath = '/wp-content/plugins/myplugin/js/_framework/';
        return basePluginPath + name;
    },
});

Is there a way to achieve the same here?

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