diff --git a/lib/philomena_web/templates/activity/_comment_strip.html.slime b/lib/philomena_web/templates/activity/_comment_strip.html.slime index a2a3c686..d072a8c0 100644 --- a/lib/philomena_web/templates/activity/_comment_strip.html.slime +++ b/lib/philomena_web/templates/activity/_comment_strip.html.slime @@ -1,6 +1,6 @@ .block__content.flex.alternating-color .flex__shrink.spacing-right - = render PhilomenaWeb.ImageView, "_image_container.html", image: @comment.image, size: :thumb_tiny + = render PhilomenaWeb.ImageView, "_image_container.html", image: @comment.image, size: :thumb_tiny, conn: @conn .flex__grow a href="/#{@comment.image.id}#comment_#{@comment.id}" | # diff --git a/lib/philomena_web/templates/image/_image_container.html.slime b/lib/philomena_web/templates/image/_image_container.html.slime index b1e5d13a..4a5c4163 100644 --- a/lib/philomena_web/templates/image/_image_container.html.slime +++ b/lib/philomena_web/templates/image/_image_container.html.slime @@ -1,4 +1,4 @@ -- link = assigns[:link] || Routes.image_path(@conn, :show, @image) +- link = assigns[:link] || "/images/#{@image.id}" = image_container @image, @size, fn -> = cond do