From 2640d6d49970c5eb6d421987a0d60420e24026c4 Mon Sep 17 00:00:00 2001 From: Christian Ortner Date: Thu, 24 Sep 2020 12:16:11 +0200 Subject: [PATCH 1/2] Allow absolute paths as Landingpage target --- resources/schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/schema.json b/resources/schema.json index f3cf490..4f955d0 100644 --- a/resources/schema.json +++ b/resources/schema.json @@ -459,9 +459,9 @@ "minLength": 1 }, "url": { - "description": "URL of the Landingpage, which should be either redirected to, or offered to the user as a link.", + "description": "URL or absolute path of the Landingpage, which should be either redirected to, or offered to the user as a link.", "type": "string", - "pattern": "^https?://.*$" + "pattern": "^(https?://|/).*$" } }, "additionalProperties": false, From 960dcb99a4ac38f36c49814aac368c059f959701 Mon Sep 17 00:00:00 2001 From: Christian Ortner Date: Thu, 24 Sep 2020 15:25:36 +0200 Subject: [PATCH 2/2] Allow absolute paths for promotion links --- resources/schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/schema.json b/resources/schema.json index 4f955d0..83c890d 100644 --- a/resources/schema.json +++ b/resources/schema.json @@ -477,9 +477,9 @@ "minLength": 1 }, "url": { - "description": "URL of the page the promotion image should link to.", + "description": "URL or absolute path of the page the promotion image should link to.", "type": "string", - "pattern": "^https?://.*$" + "pattern": "^(https?://|/).*$" }, "imageUrl": { "description": "URL of the image to use for displaying the promotion.",