app/views/naf/machine_runners/show.html.erb in naf-2.1.9 vs app/views/naf/machine_runners/show.html.erb in naf-2.1.10

- old
+ new

@@ -101,11 +101,12 @@ var answer = confirm("You are winding down this runner. Are you sure you want to do this?"); if (!answer) { return false; } var id = <%= @machine_runner.machine_runner_invocations.last.id %>; - var url = '/job_system/machine_runner_invocations/' + id; - jQuery.ajax({ + var str = window.location.pathname; + var sub_path = str.substring(0, str.indexOf("job_system")); + var url = sub_path + 'job_system/machine_runner_invocations/' + id; jQuery.ajax({ url: url, type: 'POST', dataType: 'json', data: { "machine_runner_invocation[request_to_wind_down]": 1, "machine_runner_invocation_id": id, "_method": "put" }, success:function (data) {