Skip to content

Blazor PWA: Start URL is wrong for sites not deployed to the root URL #19884

@SteveSandersonMS

Description

@SteveSandersonMS

The manifest.json file contains this: "start_url": "/"

However, if your site is deployed into a non-root location (e.g., http://example.com/mysubdir/), then this incorrectly resolves to http://example.com/.

To fix this, we need to change it to "start_url": "./". As per the spec, relative URLs are resolved relative to the location of manifest.json, so this would be correct in all cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions