2756: Fix "duplicate tab" behavior in Chrome.
authorTom Clegg <tom@curoverse.com>
Thu, 15 May 2014 15:33:20 +0000 (11:33 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 15 May 2014 15:33:20 +0000 (11:33 -0400)
apps/workbench/app/views/pipeline_instances/_show_components.html.erb

index d935b2da9154de7829530087028f66e4ca12465a..61a4ca177d370ae7036b0395c74e445774fbbe44 100644 (file)
         script, version
       </th><th>
         progress
-        <%= link_to '(refresh)', request.fullpath, class: 'refresh hide', remote: true, method: 'get' %>
+        <%# format:'js' here helps browsers avoid using the cached js
+        content in html context (e.g., duplicate tab -> see
+        javascript) %>
+        <%= link_to '(refresh)', {format:'js'}, class: 'refresh hide', remote: true, method: 'get' %>
       </th><th>
       </th><th>
         output