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

@@ -301,10 +301,15 @@ class SiteController extends FrontendController

$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 = [
// frontend
'user/update',

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

Loading…
Cancel
Save