diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 64f3002f..1cbea11e 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -19,7 +19,7 @@ class WelcomeController < ApplicationController caches_action :robots def index - (course() and render :course and return 0) if request.headers['REQUEST_URI'].match(/course\.trustie\.net/) + (course() and render :course and return 0) if request.original_url.match(/course\.trustie\.net/) # @news = News.latest User.current # @projects = Project.latest User.current #by young diff --git a/app/views/test/index.html.erb b/app/views/test/index.html.erb index 01c60e1b..d7491db8 100644 --- a/app/views/test/index.html.erb +++ b/app/views/test/index.html.erb @@ -1,3 +1,4 @@