diff --git a/engine/Shopware/Controllers/Backend/Article.php b/engine/Shopware/Controllers/Backend/Article.php index 81a134cb8e9..5aa4692a5a4 100644 --- a/engine/Shopware/Controllers/Backend/Article.php +++ b/engine/Shopware/Controllers/Backend/Article.php @@ -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); }