app/helpers/lookbook/application_helper.rb in lookbook-2.0.0.beta.7 vs app/helpers/lookbook/application_helper.rb in lookbook-2.0.0.beta.8

- old
+ new

@@ -1,8 +1,8 @@ module Lookbook module ApplicationHelper def lookbook_asset_path(file, version: true) - path = "/lookbook-assets/#{file}".gsub("//", "/") + path = "#{Engine.host_config.relative_url_root}/lookbook-assets/#{file}".gsub("//", "/") version ? "#{path}?v=#{Lookbook::VERSION}" : path end def lookbook_landing_path landing = Engine.pages.find(&:landing?) || Engine.pages.first