From 01c15e6e6051bf87e44c3238ab96f226afcf0ef9 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Mon, 5 Jul 2021 07:11:30 +0200
Subject: [PATCH] Tweak routes to avoid redirects

---
 scipost_vue/components/SearchableObjectsTable.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scipost_vue/components/SearchableObjectsTable.vue b/scipost_vue/components/SearchableObjectsTable.vue
index 8136c7119..88640fa7d 100644
--- a/scipost_vue/components/SearchableObjectsTable.vue
+++ b/scipost_vue/components/SearchableObjectsTable.vue
@@ -371,7 +371,7 @@ export default {
 	const filteringFieldsAdvanced = ref([])
 
 	const fetchFilteringFields = async () => {
-            fetch(`/api/${props.url}/filtering_options`, {headers: headers})
+            fetch(`/api/${props.url}/filtering_options/`, {headers: headers})
                 .then(stream => stream.json())
                 .then(data => {
 		    filteringFieldsBasic.value = data.basic
@@ -486,7 +486,7 @@ export default {
 		fetchingObjects.value = true
 		errorFetchingObjects.value = null
 		try {
-		    const response = await fetch(`/api/${props.url}${queryParameters.value}`, {headers: headers})
+		    const response = await fetch(`/api/${props.url}/${queryParameters.value}`, {headers: headers})
 		    const json = await response.json()
 		    objects.value = json.results
 		    totalRows.value = json.count
-- 
GitLab