From 2def4ee67e9d350b7dc74e97838f3c321a7f4c95 Mon Sep 17 00:00:00 2001 From: "martina.dimova" Date: Mon, 27 Nov 2023 10:32:10 +0200 Subject: [PATCH 1/2] GDB-9210 Download As JSON and JSONLD User interface fails to read graphdb.external-url * Changed building request to rdf4j.repositories.rest.service.js to consider different path if provided. --- src/js/angular/rest/rdf4j.repositories.rest.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/angular/rest/rdf4j.repositories.rest.service.js b/src/js/angular/rest/rdf4j.repositories.rest.service.js index 774fa3419..57f176a6e 100644 --- a/src/js/angular/rest/rdf4j.repositories.rest.service.js +++ b/src/js/angular/rest/rdf4j.repositories.rest.service.js @@ -134,7 +134,7 @@ function RDF4JRepositoriesRestService($http, $repositories, $translate) { const payloadString = properties.join('&'); return $http({ method: 'POST', - url: `/repositories/${repositoryId}`, + url: `repositories/${repositoryId}`, headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Accept': acceptHeader From 67f411792e22ae93b9033ddd470ffcef5f2718ca Mon Sep 17 00:00:00 2001 From: "martina.dimova" Date: Mon, 27 Nov 2023 10:56:55 +0200 Subject: [PATCH 2/2] GDB-9210 Download As JSON and JSONLD User interface fails to read graphdb.external-url * Changed building request to rdf4j.repositories.rest.service.js to consider different path if provided. --- src/js/angular/rest/rdf4j.repositories.rest.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/angular/rest/rdf4j.repositories.rest.service.js b/src/js/angular/rest/rdf4j.repositories.rest.service.js index 57f176a6e..81e738e6a 100644 --- a/src/js/angular/rest/rdf4j.repositories.rest.service.js +++ b/src/js/angular/rest/rdf4j.repositories.rest.service.js @@ -134,7 +134,7 @@ function RDF4JRepositoriesRestService($http, $repositories, $translate) { const payloadString = properties.join('&'); return $http({ method: 'POST', - url: `repositories/${repositoryId}`, + url: `${REPOSITORIES_ENDPOINT}/${repositoryId}`, headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Accept': acceptHeader