URL keeps getting overwritten
-
My snippet involves creating a preload request for the LCP image in the header of each page in HTML.
Ideal HTML:<link href="https://cdn.example.sg/image-title.jpg" rel="preload" as="image" type="image/jpeg" fetchpriority="high">After saving changes, the HTML gets overwritten to:
<link href="https://example.com.sg/wp-content/uploads/image-title.jpg" rel="preload" as="image" type="image/jpeg" fetchpriority="high">Do note the difference in the URL, and the addition of the wp-content path in the URL.
My images have been moved to CDN in a separate domain (cdn.example.sg). My current domain is example.com.sg
How do I stop the plugin from overwriting the entire URL? As long as .com has been removed, the entire URL gets overwritten.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘URL keeps getting overwritten’ is closed to new replies.