diff --git a/core/src/plugins/action.share/src/Http/MinisiteAuthMiddleware.php b/core/src/plugins/action.share/src/Http/MinisiteAuthMiddleware.php index fecf15cc27..623a7d645b 100644 --- a/core/src/plugins/action.share/src/Http/MinisiteAuthMiddleware.php +++ b/core/src/plugins/action.share/src/Http/MinisiteAuthMiddleware.php @@ -98,6 +98,9 @@ public static function handleRequest(ServerRequestInterface $requestInterface, R if(!empty($ctx) && $ctx->hasUser() && isSet($shareData["REPOSITORY"])){ $repoObject = UsersService::getRepositoryWithPermission($ctx->getUser(), $shareData["REPOSITORY"]); $ctx->setRepositoryObject($repoObject); + if($sessions){ + SessionService::saveRepositoryId($shareData["REPOSITORY"]); + } $requestInterface = $requestInterface->withAttribute("ctx", $ctx); }