Skip to content

Commit

Permalink
Fix: image previews require default_url_options to include host
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson committed Dec 11, 2024
1 parent e4ceda5 commit ba508c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
katalyst-koi (4.14.2)
katalyst-koi (4.14.3)
bcrypt
importmap-rails
katalyst-content
Expand Down
2 changes: 1 addition & 1 deletion katalyst-koi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "katalyst-koi"
s.version = "4.14.2"
s.version = "4.14.3"
s.authors = ["Katalyst Interactive"]
s.email = ["[email protected]"]

Expand Down
2 changes: 1 addition & 1 deletion lib/koi/form/elements/file_element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def preview
end

def preview_url
preview? ? main_app.url_for(value) : ""
preview? ? main_app.polymorphic_path(value, only_path: true) : ""
end

def preview?
Expand Down

0 comments on commit ba508c8

Please sign in to comment.