From 7daf685f2b252d6c28e11f533eb1462f0804dd1f Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 17 Aug 2017 15:16:26 +0800 Subject: [PATCH] small fix for url for widgets --- app/controllers/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index dadc2e4..13938d6 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -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,