getQueryPathByScope function
Implementation
String getQueryPathByScope(String path) {
var value = path;
if(dotenv.env['scope'] != null && dotenv.env['scope'] != "core"){
var scopePrefix = dotenv.env['scopePrefix'] ?? "site";
value = "$scopePrefix/$path";
}
return value;
}