Browse Source

Déconnexion : gestion redirection

feature/rotating_product
Guillaume Bourgeois 7 months ago
parent
commit
4a07c255f5
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      frontend/controllers/SiteController.php

+ 6
- 1
frontend/controllers/SiteController.php View File



$referer = Yii::$app->request->referrer ?: Yii::$app->homeUrl; $referer = Yii::$app->request->referrer ?: Yii::$app->homeUrl;


// @TODO : comprendre pourquoi le referer n'est pas complet en ligne (slug producteur + controller/action absents)
if($referer == 'https://'.Yii::getAlias('@producerSubdomain').'.'.Yii::getAlias('@domainName').'/') {
return $this->redirect(Yii::$app->homeUrl);
}

$authenticatedActions = [ $authenticatedActions = [
// frontend // frontend
'user/update', 'user/update',

// producer // producer
'order/order', 'order/order',
'order/history', 'order/history',

Loading…
Cancel
Save