Fix iframe wrong url bug.
This commit is contained in:
parent
577a845e1f
commit
146909c0c2
|
@ -740,6 +740,10 @@ class AnnouncementsController < ApplicationController
|
|||
else
|
||||
@categories = params[:categories]
|
||||
end
|
||||
begin
|
||||
params[:url] = Page.first.find_page(:module=>"announcement",:enabled_for=>I18n.locale.to_s).first.url rescue Page.where(:module=>"announcement",:enabled_for=>I18n.locale.to_s).first.url
|
||||
rescue
|
||||
end
|
||||
OrbitHelper.set_site_locale(I18n.locale)
|
||||
OrbitHelper.set_current_widget_module("announcement")
|
||||
OrbitHelper.set_params(params,current_user)
|
||||
|
|
Loading…
Reference in New Issue