ampproject / ampproject/amp.dev

Playground: when you import from a URL, relative URLs break

Open
#4,382 2 comments 0 reactions 0 assignees View on GitHub
Category: Playground P3: Low Type: Feature
Dominant language
HTML
Stars
600
Forks
675
PR merge metrics
No merged PRs in 30d

Description

For example, if I import https://camp.samples.amp.dev into the playground, images break, because they're expressed as relative URLs, not absolute URLs.

I assume that, to fix this, you'd have to inject a `` tag into the ``, rewrite URLs, or do something else that might break some pages... but if a clever fix is possible, it could open up new possibilities for the playground as a debugging tool!

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.