AMP External libraries requested without protocol

Created on 14 October 2020, over 4 years ago
Updated 19 July 2024, 10 months ago

AMP libraries are being requested without protocol, causing AMP pages to fail validation.

This would appear to have changed in the last few days so I don't think this is a fault within the AMP module itself, perhaps a recent change in a contributed module or core. Or maybe AMP validation?

AMP Validator error message:
The attribute 'src' in tag 'amp-form extension .js script' is set to the invalid value '//cdn.ampproject.org/v0/amp-form-0.1.js'.

Caused by site loading the libraries as follows:
<script src="//cdn.ampproject.org/v0.js" async></script>

Locally (via http) the scripts are loaded with the https protocol suffixed, this only occurs on dev/test/live servers (in my case on Pantheon).

πŸ› Bug report
Status

Fixed

Version

3.5

Component

Code

Created by

πŸ‡¦πŸ‡·Argentina weemondo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024