FIX: Broken images on subfolder installs (#19404)

Use the `Discourse.base_path` when linking to hard coded images used in
the UI so that the correct subfolder path is used if present.

Follow up: 5c67b073ae
This commit is contained in:
Blake Erickson 2022-12-09 11:24:12 -07:00 committed by GitHub
parent 5c67b073ae
commit 552f16fc95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,6 @@
</div>
<div class='row finish-installation-image'>
<%= image_tag "/images/wizard/tada.svg", class: "tada" %>
<img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
</div>
</div>

View File

@ -9,7 +9,7 @@
<br>
<div class='perform-activation'>
<div class="image">
<img src="/images/wizard/tada.svg" alt="" class="waving-hand">
<img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="waving-hand">
</div>
<% if @needs_approval %>
<p><%= t 'activation.approval_required' %></p>