prefix http:// to subdomain redirect

This commit is contained in:
jywarren
2015-04-17 19:53:47 -04:00
parent 4170e7c2b1
commit 00c513876b

View File

@@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base
def check_subdomain
if request.subdomain.present?
redirect_to request.domain + request.port_string + request.fullpath
redirect_to 'http://' + request.domain + request.port_string + request.fullpath
end
end