Skip to content

Commit 4b08d26

Browse files
committed
fix: backend article preview 'shop' cookie
1 parent f5256ae commit 4b08d26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/Shopware/Controllers/Backend/Article.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,9 @@ public function previewDetailAction()
22612261
]
22622262
);
22632263

2264-
$this->Response()->headers->setCookie(new Cookie('shop', (string) $shopId, 0, $shop->getBasePath()));
2264+
$cookieExpire = time() + 30;
2265+
$this->Response()->headers->setCookie(new Cookie('shop', (string) $shopId, $cookieExpire, $shop->getBasePath()));
2266+
22652267
$this->redirect($url);
22662268
}
22672269

0 commit comments

Comments
 (0)