From 3905693b314db7a5397197fdcb57c71fa6d9f731 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Fri, 14 Feb 2020 16:13:35 +0800 Subject: [PATCH] .. --- app/controllers/main_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index 91e5f3669..e5cc4ebf5 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -19,8 +19,8 @@ class MainController < ApplicationController uid_logger("main start is #{cookies[:_educoder_session]}") end - Rails.logger("params paths is #{params[:path]}") - if params[:path].split("/").first == "h5" + Rails.logger("params paths is #{params}") + if params[:path] == "h5" render file: 'public/h5build/index.html', :layout => false else render file: 'public/react/build/index.html', :layout => false