From 819f9885b297bdbe285c6bcb5948c7a99e542ae2 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Wed, 25 Feb 2015 17:08:29 +0100 Subject: [PATCH] gallery og tag --- app/views/galleries/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index db0598d..53ce04a 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -18,9 +18,9 @@ picture_url=URI(root_url) picture_url.path=@ofoto.datei.url(:locale=>nil, :theme=>nil) set_meta_tags :og => { :image => picture_url.to_s, -:title => @gallery.name.to_s, +:title => @gallery.name.to_s + "FotoID:" + @ofoto.id.to_s, :type => "article", -:url=>gallery_foto_url(@gallery,@ofoto,:theme=>nil) +:url=>gallery_url(@gallery,{:fotoid=>@ofoto.id,:theme=>nil}) }