From 6e08a31e8b9aea55adddb489b506b083f6b8e170 Mon Sep 17 00:00:00 2001
From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de>
Date: Mon, 14 Aug 2017 19:27:25 +0200
Subject: [PATCH] Fix keeping get-parameters with paging

---
 templates/decisions-list.html | 2 +-
 templates/protocols-list.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/decisions-list.html b/templates/decisions-list.html
index 61dd296..667eef2 100644
--- a/templates/decisions-list.html
+++ b/templates/decisions-list.html
@@ -9,7 +9,7 @@
 	{% if _page_length is none %}
 		{% set _page_length = page_length %}
 	{% endif %}
-    <a href="{{url_for(request.endpoint, page=_page, protocoltype=protocoltype_id, search=search_term, decisioncategory_id=decisioncategory_id, page_length=_page_length)}}">{{text}}</a>
+    <a href="{{url_for(request.endpoint, page=_page, protocoltype_id=protocoltype_id, search=search_term, decisioncategory_id=decisioncategory_id, page_length=_page_length)}}">{{text}}</a>
 {% endmacro %}
 
 {% block content %}
diff --git a/templates/protocols-list.html b/templates/protocols-list.html
index acbd418..1b1f81f 100644
--- a/templates/protocols-list.html
+++ b/templates/protocols-list.html
@@ -9,7 +9,7 @@
 	{% if _page_length is none %}
 		{% set _page_length = page_length %}	
 	{% endif %}
-    <a href="{{url_for(request.endpoint, page=_page, protocoltype=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length)}}">{{text}}</a>
+    <a href="{{url_for(request.endpoint, page=_page, protocoltype_id=protocoltype_id, search=search_term, state_open=state_open, page_length=_page_length)}}">{{text}}</a>
 {% endmacro %}
 
 {% block content %}
-- 
GitLab