From 831d09c6e11e9195c1777a77e6d4d1230cfdaac3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 25 Jul 2023 10:13:59 +0200 Subject: [PATCH] Make URL available for translators in CORS message --- umap/static/umap/js/umap.xhr.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.xhr.js b/umap/static/umap/js/umap.xhr.js index 4855137d..453579bb 100644 --- a/umap/static/umap/js/umap.xhr.js +++ b/umap/static/umap/js/umap.xhr.js @@ -95,7 +95,8 @@ L.U.Xhr = L.Evented.extend({ // 0 === request cut by user or CORS self.ui.alert({ content: L._( - 'Issue reaching that URL (network problem or CORS protection)' + ` ${settings.uri}` + 'Issue reaching that URL (network problem or CORS protection): {url}', + { url: settings.uri } ), level: 'error', })