[ARVADOS] created: 1.3.0-1833-g4bc50602b

Git user git at public.curoverse.com
Wed Nov 6 16:27:12 UTC 2019


        at  4bc50602b0acf443a2632ff94720b648e0169f54 (commit)


commit 4bc50602b0acf443a2632ff94720b648e0169f54
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Wed Nov 6 11:26:51 2019 -0500

    15799: Ensure default baseURL has a trailing slash.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/apps/workbench/app/views/layouts/application.html.erb b/apps/workbench/app/views/layouts/application.html.erb
index bd3afbb68..184830118 100644
--- a/apps/workbench/app/views/layouts/application.html.erb
+++ b/apps/workbench/app/views/layouts/application.html.erb
@@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
   <meta name="author" content="">
   <% if current_user %>
     <% content_for :js do %>
-      window.defaultSession = <%=raw({baseURL: Rails.configuration.Services.Controller.ExternalURL.to_s, token: Thread.current[:arvados_api_token], user: current_user}.to_json)%>
+      window.defaultSession = <%=raw({baseURL: Rails.configuration.Services.Controller.ExternalURL.to_s.replace(/\/?$/,'/'), token: Thread.current[:arvados_api_token], user: current_user}.to_json)%>
     <% end %>
   <% end %>
   <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list