mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-05 16:00:00 +01:00
prefix http:// to subdomain redirect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user