small fix for url for widgets

This commit is contained in:
Harry Bomrah 2017-08-17 15:16:26 +08:00
parent 3203b35722
commit 7daf685f2b
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ class AnnouncementsController < ApplicationController
author = User.find(a.create_user_id).member_profile.name rescue ""
desc = a.image_description
desc = (desc.nil? || desc == "" ? "announcement image" : desc)
link_to_show = a.is_external_link ? a.external_link : OrbitHelper.url_to_show(a.to_param)
link_to_show = a.is_external_link ? a.external_link : OrbitHelper.widget_item_url(a.to_param)
target = a.is_external_link ? "_blank" : "_self"
anns << {
"bulletin_links" => links,