Skip to content

Commit

Permalink
QE-734 e2e test auth fix (#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-foster-uk committed Mar 13, 2024
1 parent 0d96ffa commit 5a464d3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions application/controllers/EditorLinkController.php
Expand Up @@ -51,9 +51,13 @@ public function accessRules()
public function run($action)
{
$this->setAuthInitCookie();
$route = Yii::app()->request->getQuery('route');
$path = static::REACT_APP_BASE_PATH . $route;
$url = Yii::app()->request->baseUrl . $path;
$editorUrl = Yii::app()->request->getQuery(
'url',
Yii::app()->request->baseUrl
. static::REACT_APP_BASE_PATH
);
$editorRoute = Yii::app()->request->getQuery('route');
$url = $editorUrl . $editorRoute;
$this->redirect($url);
}

Expand Down

0 comments on commit 5a464d3

Please sign in to comment.