This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Daniel81
Daniel81

Hi,

When you upload an image, the path to the image for example will be:

october/uploads/public/546/4af/a74/5464afa7427e1985162511.jpg

but if you place that in a CSS url() you end up with the following (after compiled):

url(/october/themes/YOUR_THEME/october/uploads/public/546/4af/a74/5464afa7427e1985162511.jpg)

Anyone know a way to get this working?

Daniel81
Daniel81

I suppose I could just use the absolute url:

http://localhost:8888/october/uploads/public/546/4af/a74/5464afa7427e1985162511.jpg

but ideally would just like to use the relative url if anyone has any ideas?

daftspunky
daftspunky

Use a relative path, like this:

../../uploads/public/546/4af/a74/5464afa7427e1985162511.jpg
Daniel81
Daniel81

Ah thanks @daftspunk, knew it'd be a simple fix ;)

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.