clean page on OrbitHelper

This commit is contained in:
邱博亞 2023-10-15 23:21:00 +08:00
parent 06bc2b1531
commit ddb8da9eca
1 changed files with 6 additions and 0 deletions

View File

@ -433,6 +433,7 @@ class SeminarsController < ApplicationController
end
def create
OrbitHelper.set_page(nil)
referer_url = request.referer
if referer_url
params[:url] = URI.parse(referer_url).path.sub(/\/[^\/]*$/, '').sub(/^\/#{I18n.locale}/, '')
@ -541,6 +542,11 @@ class SeminarsController < ApplicationController
end
def update_signup_form
OrbitHelper.set_page(nil)
referer_url = request.referer
if referer_url
params[:url] = URI.parse(referer_url).path.sub(/\/[^\/]*$/, '').sub(/^\/#{I18n.locale}/, '')
end
params = OrbitHelper.params
tmp_seminar_signup_params = seminar_signup_params
@seminar_signup = SeminarSignup.find(params[:signup_id])