Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Fix relative URL issue with oembeds not using absolute URLs #290

Merged
merged 3 commits into from
Jul 8, 2016
Merged

Fix relative URL issue with oembeds not using absolute URLs #290

merged 3 commits into from
Jul 8, 2016

Conversation

stuartshields
Copy link

This fixes an issue when oembeds like instagram, twitter etc. use <script async="" defer="defer" src="//platform.instagram.com/en_US/embeds.js"/> instead of <script async="" defer="defer" src="https://platform.instagram.com/en_US/embeds.js"/>. Without this fix Facebook Instant Articles will report an error to the user about the article.

@stuartshields stuartshields changed the title Fix-relative-url-issue Add dom to fix relative URL issue in scripts Fix relative URL issue with oembeds not using absolute URLs May 24, 2016
@everton-rosario
Copy link
Collaborator

@stuartshields Thanks for this PR.

Sorry for the long wait on reviewing.

Merging it.

@everton-rosario everton-rosario merged commit 9396fdc into Automattic:master Jul 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants