From 91188f676eead9923d6e7c4fbba4eef78792eb6c Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 7 May 2020 15:11:42 +0200 Subject: [PATCH] [experiments][static][js][pannel] Fix URL generation on fork save The original logic would get the first item of the experiment name which matches the user name. However, the name variable in that case contains the name of the fork, not the fully qualified name. To fix that, directly use the username variable. --- beat/web/experiments/static/experiments/js/panels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beat/web/experiments/static/experiments/js/panels.js b/beat/web/experiments/static/experiments/js/panels.js index b2281934a..45359c320 100644 --- a/beat/web/experiments/static/experiments/js/panels.js +++ b/beat/web/experiments/static/experiments/js/panels.js @@ -108,7 +108,7 @@ beat.experiments.panels.Settings = function(panel_id, toolchain_name, d.done(function(data) { if (queue) { - window.location = url_prefix + '/experiments/' + data.name.split('/')[0] + '/'; + window.location = url_prefix + '/experiments/' + username + '/'; return; } -- GitLab