diff --git a/topologie/templates/topologie/index_p.html b/topologie/templates/topologie/index_p.html
index 84159659..3f9356f2 100644
--- a/topologie/templates/topologie/index_p.html
+++ b/topologie/templates/topologie/index_p.html
@@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% if is_infra %}
Editer
Ajouter un port
+ Ajouter des ports
{% endif %}
{% include "topologie/aff_port.html" with port_list=port_list %}
diff --git a/topologie/views.py b/topologie/views.py
index 11b889fa..4561506a 100644
--- a/topologie/views.py
+++ b/topologie/views.py
@@ -440,10 +440,10 @@ def create_ports(request, switch_id):
e = []
if end < begin:
messages.error(request, "Port de fin inférieur au port de début !")
- return redirect("/topologie/")
+ return redirect("/topologie/switch/" + str(switch.id))
if end - begin > switch.number:
messages.error(request, "Ce switch ne peut avoir autant de ports.")
- return redirect("/topologie/")
+ return redirect("/topologie/switch/" + str(switch.id))
if begin < s_begin:
b = range(begin, s_begin)
@@ -461,7 +461,7 @@ def create_ports(request, switch_id):
messages.success(request, "Création du port %d" % i)
except IntegrityError:
messages.error(request, "Création d'un port existant.")
- return redirect("/topologie/")
+ return redirect("/topologie/switch/" + str(switch.id))
return form({'topoform': port_form,}, 'topologie/switch.html', request)