Browse Source

refactor string parse

pull/1584/head
Kat 3 years ago
parent
commit
26f89a22a0
  1. 2
      app/controllers/form_controller.rb

2
app/controllers/form_controller.rb

@ -47,7 +47,7 @@ class FormController < ApplicationController
def show_page def show_page
if request.params["referrer"] == "interruption_screen" if request.params["referrer"] == "interruption_screen"
@interruption_page_id = request.headers["HTTP_REFERER"].split("/")[-1].split("?")[0].underscore @interruption_page_id = URI.parse(request.headers["HTTP_REFERER"]).path.split("/").last.underscore
end end
if @log if @log

Loading…
Cancel
Save