google / google/playground-elements

Fragments in URLs to project files cause 404s

Open
#349 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
648
Forks
61
PR merge metrics
No merged PRs in 30d

Description

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

Here's a repro with a `` 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.