Causes problems with AMP plugin
-
The HTTPS url rewriting leads to invalid URL errors in AMP.
What this plugin does.
It strips the protocol i.e. removes http: and https: from resource URLs using the following regex.
/(<(script|link|base|img|form)([^>]*)(href|src|action)=[\"'])http:\\/\\//i
What I feel it should do is rewrite http to https only if necessary or provide a filter to exclude URLs which contain certain words by using ‘preg_replace_callback’ if possible.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Causes problems with AMP plugin’ is closed to new replies.