Add requested path to www redirect
This commit is contained in:
parent
32370ce76c
commit
9a3de4e2d5
@ -3,9 +3,8 @@
|
||||
require 'sinatra'
|
||||
|
||||
before do
|
||||
unless settings.development? || request.host =~ /^www\./
|
||||
redirect("https://www.#{request.host}/")
|
||||
end
|
||||
redirect("https://www.#{request.host + request.path_info}") \
|
||||
unless settings.development? || request.host =~ /^www\./
|
||||
end
|
||||
|
||||
get '/*' do
|
||||
|
Loading…
x
Reference in New Issue
Block a user