diff --git a/app/views/admin/announcements/settings.html.erb b/app/views/admin/announcements/settings.html.erb index a8f262e..8d66b22 100644 --- a/app/views/admin/announcements/settings.html.erb +++ b/app/views/admin/announcements/settings.html.erb @@ -360,7 +360,7 @@ $('#url_generate').off('click').on('click',function(){ var params = getparams('iframe_settings'); $.post("<%=admin_announcement_generate_iframe_url_path%>",params).done(function(url){ - var real_url = window.location.href.split('/')[0]+"//"+window.location.host+url; + var real_url = '/annc_url?url='+window.location.href.split('/')[0]+"//"+window.location.host+url; if($("#dialog-confirm").length == 0){ $("#url_generate").before("