From 79be6d2fcc45651feb66675ef85cbcb4f88ef74e Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Tue, 31 May 2016 13:02:12 +0100 Subject: Fix link to blank group icon When the group is the default blank icon, this needs to use the `image_path` helper; otherwise, the link won't work if assets are precompiled. This still works fine for uploaded icons in either case. --- app/views/groups/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 77c297255b8..df7894f2967 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -6,7 +6,7 @@ .cover-block.groups-cover-block .container-fluid.container-limited - = link_to group_icon(@group), target: '_blank' do + = link_to(image_path(group_icon(@group)), target: '_blank') do = image_tag group_icon(@group), class: "avatar group-avatar s70" .group-info .cover-title -- cgit v1.2.1