lib/rhoconnect/web-console/server.rb in rhoconnect-4.0.0 vs lib/rhoconnect/web-console/server.rb in rhoconnect-4.0.1
- old
+ new
@@ -28,11 +28,10 @@
get '/' do
#if heroku instance single sign will already have logged in a have token in session
@token = session[:token] if ENV['INSTANCE_ID']
@heroku = RestClient.get('http://nav.heroku.com/v1/providers/header') if @token
@version = Rhoconnect::VERSION
- @domain = ENV['RHODES_URL'] || request.host_with_port
- @domain += "/application" if @domain and !ENV['RHODES_URL']
+ @domain = "#{request.scheme}://#{request.host_with_port}"
erb :index
end
get "/heroku/resources/:id" do
begin
\ No newline at end of file