In development, CSS, JavaScript, and images are all referenced as relative URL's (which works fine).
In production, however, images are not referenced correctly when I deploy to a suburi. The css and js helpers are referenced as absolute paths correctly ie,
I have the following in my application class.
I'm using the
js
,css
, andimg
helpers.In development, CSS, JavaScript, and images are all referenced as relative URL's (which works fine).
In production, however, images are not referenced correctly when I deploy to a suburi. The
css
andjs
helpers are referenced as absolute paths correctly ie,/suburi/assets/app.<cache-buster>.css
/suburi/assets/app.<cache-buster>.js
but the images are referenced relatively without the suburi
images/fire.jpg
If I manually navigate to the image referenced in production after prepending
suburi
to the image, it works.I could of course reference the images by prepending
suburi
to theimg
calls. However, this would break in development.