aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb
index c6a4e7e..8fcbdbe 100644
--- a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb
+++ b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb
@@ -23,10 +23,13 @@ module Refinery
def find_all_gallery_links
@gallery_links = GalleryLink.order('position ASC')
+ logger.debug "Found #{@gallery_links.length} galleries..."
end
def find_page
- @page = ::Refinery::Page.where(:link_url => "/gallery_links").first
+ @page = ::Refinery::Page.where(
+ :link_url => "#{ENV['RAILS_RELATIVE_URL_ROOT']}/gallery_links")
+ .first
end
end