question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validator rejects relative URLs in <amp-story bookend-config-src>

See original GitHub issue

In https://github.com/ampproject/amphtml/pull/14192, the validator was changed to reject relative bookend-config-src URLs. Can this be changed back? A few reasons:

  • Reducing the number of options available to developers makes this feature more difficult to deploy. (Often it is inconvenient to determine, at story construction time, how/where a document will be exposed to the internet.)
  • It’s inconsistent with <amp-list src>, which allows relative URLs. (Admittedly there is a commenting saying this will be changed “at a future date”, but that commit was made 2 years ago, and it seems unlikely that changing this will be possible now given the number of AMP documents in existence.)
  • (Minor reason) it makes a number of existing stories invalid, such as https://www.vox.com/2018/4/3/17188308/me-too-sexual-harassment-sexual-assault (@gmac FYI).

/cc @choumx @newmuis

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
honeybadgerdontcarecommented, May 21, 2018

Relative URLs are coming for background-audio, publisher-logo-src, poster-landscape-src, poster-portrait-src and poster-square-src. This will go live in 1-2 weeks.

0reactions
newmuiscommented, May 14, 2018

@bpaduch We’re working on a new version of the amp-story spec which changes the bookend-config-src attribute on the <amp-story> tag to a src attribute on the <amp-story-bookend> tag (as a child of <amp-story>). We’re working on finalizing the details before updating docs.

@honeybadgerdontcare I tend to agree that it doesn’t seem like our users are distinguishing between when relative vs. absolute URLs are expected, and other AMP components have set the precedent that we shouldn’t need to. So, I’d love for us to figure out how to support both absolute and relative URLs “everywhere”

Read more comments on GitHub >

github_iconTop Results From Across the Web

element should not contain relative URL references
Solution. Make sure all URLs are absolute, that is, that they include your server name and a full path.
Read more >
input type ="url" for relative URLs - Stack Overflow
It says, "While the value of the element is not a valid absolute URL, the element is suffering from a type mismatch.".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found