diff --git a/beat/web/algorithms/templates/algorithms/edition.html b/beat/web/algorithms/templates/algorithms/edition.html
index 73667155ed846d514853715fddb0a533d598d75d..940b638acfbb2573b7041a1836ce3d5e541a02c3 100644
--- a/beat/web/algorithms/templates/algorithms/edition.html
+++ b/beat/web/algorithms/templates/algorithms/edition.html
@@ -710,10 +710,7 @@ jQuery(document).ready(function() {
     });
 
   {% if original_author %}
-  var url = '{% url 'api_algorithms:object' original_author algorithm_name %}'
-  {% if algorithm_version %}
-  url += '{{ algorithm_version }}/';
-  {% endif %}
+  var url = '{% url 'api_algorithms:object' original_author algorithm_name algorithm_version %}'
 
   var query = '?fields=html_description,description,short_description';