From bce78f4b014f28e555000a0a708fc7452922fad9 Mon Sep 17 00:00:00 2001 From: Fabian Steeg Date: Thu, 26 Oct 2023 11:13:33 +0200 Subject: [PATCH] Fix usage of indexUrlFormat config template for Merkliste --- app/controllers/nwbib/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/nwbib/Application.java b/app/controllers/nwbib/Application.java index 116b1d72..caa2952e 100644 --- a/app/controllers/nwbib/Application.java +++ b/app/controllers/nwbib/Application.java @@ -868,7 +868,7 @@ public static Promise showStars(String format, String ids) { Stream> promises = starredIds.stream() .map(id -> WS .url(String - .format(String.format("http://" + request().host() + "/" + CONFIG.getString("indexUrlFormat"), id))) + .format(String.format(CONFIG.getString("indexUrlFormat"), id))) .setContentType("application/json").get() .map(response -> response.asJson().get("member").get(0))); return Promise.sequence(promises.collect(Collectors.toList()))