W3CT is replacing relative link in pre/code blocks
-
I’m writing an Nginx tutorial on my site, which uses W3 Total Cache, and writing
<pre><code> stuff here </code></pre>
.The plugin replaces this:
location = /favicon.ico { log_not_found off; access_log off; }
With this:
location =https://cdn.example.com/favicon.ico.gzip { log_not_found off; access_log off; }
When I disable the plugin and preview the post again, it doesn’t replace it. For full disclosure, I’m using the Highlighting Code Block plugin to add my code to posts, which uses Prism.js, but I don’t think that would be the conflict here.
It makes sense that W3TC changes the URLs in posts, particularly for assets/images that are served through the CDN. It doesn’t make sense to do so in code blocks, however. Is there a setting that I’m missing that I can use to stop this from happening? But while also keeping things like images using the CDN links.
- The topic ‘W3CT is replacing relative link in pre/code blocks’ is closed to new replies.