Roots Discourse

How to change image source from relative to absolute?

image

#1

I was trying to setup some facebook instant articles plugins today in my trellis - bedrock -sage setup today and found out all my post image sources are relative and facebook is giving me hard time reading this relative urls. is there any way i can use absolute url sitewide? more over i was also planning to install some cdn plugins like offoad s3 too for my medias where i have to change the media urls. I am not sure how to change the pattern site wide. Thanks.


#2

Relative URLs are a Soil feature. You can disable them completely, or filter them based on the situation. More details in this thread: Soil Root Relative URL + Plugins


#3

Thanks man, yes it was enabled by soil. Primarily I have disabled the relative path. But in future I will try tweaking the setting as mentioned in the post.