Skip to content

Fragments in URLs to project files cause 404s #349

@justinfagnani

Description

@justinfagnani

This is a common need with the SVG <use> element which needs a URL and a fragment to identify an element by id.

Here's a repro with a <link> tag: https://lit.dev/playground/#gist=f5b3171f6cb1d37459832b9cae6193f3

Looking at the Network tab in dev tools, it doesn't look like the request URL includes the fragment, so I'm not sure if/how the service worker gets access to it, but it may need to strip of fragments before looking a file up in the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions