From b16d243df70b97fccae1b73784e80a898da7a6f1 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 29 Nov 2019 12:23:33 +0200 Subject: [PATCH] Allow for relative URIs --- components/common/cpp/src/configuration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/common/cpp/src/configuration.cpp b/components/common/cpp/src/configuration.cpp index 0cd014cfb..aea0f1b20 100644 --- a/components/common/cpp/src/configuration.cpp +++ b/components/common/cpp/src/configuration.cpp @@ -255,6 +255,8 @@ static std::string preprocessURI(const std::string &uri) { } else { return uri; } + } else if (uri[0] == '/') { + return rootCFG->getID() + uri; } else { return uri; } -- GitLab