From 9c01937ec6f68466c8ab2bfbffed4d749bbc8c40 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 31 Oct 2023 15:57:47 +0000 Subject: [PATCH] FIX: Use correct location for wizard background image (#24183) Files in `/assets/*` are given digests by sprockets, and we don't have any infrastructure for accessing those URLs in SCSS files. Instead, we should put this image with other similar images in the `public/images` directory, and then use the `absolute-image-url` helper so that it correctly uses the CDN where available. --- app/assets/stylesheets/wizard.scss | 2 +- {app/assets => public}/images/bubbles-bg.png | Bin 2 files changed, 1 insertion(+), 1 deletion(-) rename {app/assets => public}/images/bubbles-bg.png (100%) diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss index f690ffa5c97..4fab4559c65 100644 --- a/app/assets/stylesheets/wizard.scss +++ b/app/assets/stylesheets/wizard.scss @@ -27,7 +27,7 @@ body.wizard { flex-direction: column; align-items: center; padding-top: 1.5em; - background-image: url(../assets/bubbles-bg.png); + background-image: absolute-image-url("/bubbles-bg.png"); height: 100%; } diff --git a/app/assets/images/bubbles-bg.png b/public/images/bubbles-bg.png similarity index 100% rename from app/assets/images/bubbles-bg.png rename to public/images/bubbles-bg.png