Skip to content

Commit ae3d6ea

Browse files
Explain why we are loading a different route without contest ID.
1 parent 871e45d commit ae3d6ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/src/Controller/API/AbstractRestController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ protected function renderCreateData(
140140
$postfix = '';
141141
if ($routeType !== 'user') {
142142
$params['cid'] = $request->attributes->get('cid');
143+
// If we request any entity without contest, we need to use the rout postfixed with _1,
144+
// which is the route without the contest in the URL.
143145
if ($params['cid'] === null) {
144146
$postfix = '_1';
145147
}

0 commit comments

Comments
 (0)