FIX: Image Lightbox on Subfolder Install
Since LocalSotre.is_relative wasn't subfolder aware, images on subfolder install weren't getting lightboxed.
This commit is contained in:
parent
c1aea91d63
commit
4d01328bc2
|
@ -35,7 +35,7 @@ module FileStore
|
||||||
end
|
end
|
||||||
|
|
||||||
def relative_base_url
|
def relative_base_url
|
||||||
"/uploads/#{RailsMultisite::ConnectionManagement.current_db}"
|
"#{Discourse.base_uri}/uploads/#{RailsMultisite::ConnectionManagement.current_db}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def external?
|
def external?
|
||||||
|
|
Loading…
Reference in New Issue