Commit 91188f67 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[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.
parent 0339f2b2
Pipeline #39720 passed with stage
in 13 minutes and 58 seconds
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment