diff --git a/modules/api/php/endpoints/projects.class.inc b/modules/api/php/endpoints/projects.class.inc index 584cc7ab432..68d1798c9b7 100644 --- a/modules/api/php/endpoints/projects.class.inc +++ b/modules/api/php/endpoints/projects.class.inc @@ -101,7 +101,9 @@ class Projects extends Endpoint implements \LORIS\Middleware\ETagCalculator // Delegate to project specific endpoint. try { - $project_name = $pathparts[1] ?? ''; + $project_name = isset($pathparts[1]) ? + urldecode($pathparts[1]) : + ''; $project = \NDB_Factory::singleton() ->project($project_name); } catch (\NotFound $e) {