getQueryPathByScope function

String getQueryPathByScope(
  1. String path
)

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;
}