Skip to content

Commit

Permalink
fix: backend article preview 'shop' cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominikrt committed Jul 21, 2024
1 parent f5256ae commit 4b08d26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/Shopware/Controllers/Backend/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,9 @@ public function previewDetailAction()
]
);

$this->Response()->headers->setCookie(new Cookie('shop', (string) $shopId, 0, $shop->getBasePath()));
$cookieExpire = time() + 30;
$this->Response()->headers->setCookie(new Cookie('shop', (string) $shopId, $cookieExpire, $shop->getBasePath()));

$this->redirect($url);
}

Expand Down

0 comments on commit 4b08d26

Please sign in to comment.