small fix for url for widgets
This commit is contained in:
parent
3203b35722
commit
7daf685f2b
|
@ -233,7 +233,7 @@ class AnnouncementsController < ApplicationController
|
||||||
author = User.find(a.create_user_id).member_profile.name rescue ""
|
author = User.find(a.create_user_id).member_profile.name rescue ""
|
||||||
desc = a.image_description
|
desc = a.image_description
|
||||||
desc = (desc.nil? || desc == "" ? "announcement image" : desc)
|
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"
|
target = a.is_external_link ? "_blank" : "_self"
|
||||||
anns << {
|
anns << {
|
||||||
"bulletin_links" => links,
|
"bulletin_links" => links,
|
||||||
|
|
Loading…
Reference in New Issue