Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
hack around so we can keep using the old interface for now
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs authored Nov 24, 2016
1 parent 7f0e9c7 commit 5e4898a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/passthrough_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def fix_urls!(body)

body.gsub!("http://#{host}/", '/')
body.gsub!("https://#{host}/", '/')
body.gsub!("http://pizza.de/", '/')
body.gsub!("https://pizza.de/", '/')

body.gsub!('window.location.hostname', 'window.location.host')

# let JS believe the page was simply reloaded. Also replace our host with
Expand All @@ -136,6 +139,6 @@ def no_revalidate_for(max_age)
end

def forwarder
@forwarder ||= Forwarder.new("pizza.de")
@forwarder ||= Forwarder.new("shop.pizza.de")
end
end

0 comments on commit 5e4898a

Please sign in to comment.