Skip to content
Snippets Groups Projects
Commit 73f76014 authored by Philip ABBET's avatar Philip ABBET
Browse files

[toolchains] Fix #393 - Cancelling edition generates a 404 (NOT FOUND)

parent 4521c801
No related branches found
No related tags found
1 merge request!221v1.2.0rc1 bugfixes
......@@ -205,7 +205,11 @@ function setupEditor(databases, toolchains)
};
toolchain_editor.callbacks.onClose = function(declaration) {
{% if not edition %}
window.location = '{% url "toolchains:list" toolchain_author %}';
{% else %}
window.location = '{% url "toolchains:view" toolchain_author toolchain_name toolchain_version %}';
{% endif %}
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment