From 8f2e48cfb80d630f8258ee713f34cb9421f4d9ae Mon Sep 17 00:00:00 2001 From: Bohung Date: Mon, 24 May 2021 15:43:40 +0800 Subject: [PATCH] change cover image link url. --- app/controllers/galleries_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 9a52b83..d3166e3 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -160,7 +160,7 @@ class GalleriesController < ApplicationController "album-name" => a.name, "album-description" => a.description, "alt_title" => alt_text, - "link_to_show" => OrbitHelper.widget_more_url + "/" + a.to_param, + "link_to_show" => OrbitHelper.widget_more_url + "/" + a.to_param + "#" + (cover_image.id.to_s rescue ""), "src" => thumb_src.gsub("thumb_",""), "thumb-src" => thumb_src, "thumb-large-src" => thumb_src.gsub("thumb_","thumb_large_"),