diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 2d3e56303..a3eb77152 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -390,7 +390,9 @@ class ProjectsController < ApplicationController def che_request begin - send_to_che + response = send_to_che + @link_ide = response["links"]["ide"] + Rails.logger.info("#############link_ide: #{link_ide}") rescue Exception => e raise(e.backtrace.join("\n")) end diff --git a/app/views/projects/che_request.js.erb b/app/views/projects/che_request.js.erb index e69de29bb..6f634994f 100644 --- a/app/views/projects/che_request.js.erb +++ b/app/views/projects/che_request.js.erb @@ -0,0 +1 @@ +window.location.href = @link_ide \ No newline at end of file