From ddb8da9ecac1b92a7ed808b4d602c41587c38b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 15 Oct 2023 23:21:00 +0800 Subject: [PATCH] clean page on OrbitHelper --- app/controllers/seminars_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/seminars_controller.rb b/app/controllers/seminars_controller.rb index 8e7659f..caa4fd8 100644 --- a/app/controllers/seminars_controller.rb +++ b/app/controllers/seminars_controller.rb @@ -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])