Skip to content

Commit a8da485

Browse files
Sergii Kovalenkodanielrenaud
authored andcommitted
MAGETWO-91608: SEO-friendly URL for category page not working
1 parent c2a1f25 commit a8da485

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,14 @@ public function __construct(
4141
/**
4242
* Resolve store id
4343
*
44-
* Tries to take store id from store HTTP parameter, if can`t find it, try to dig into store_id
45-
* If param is absent in store_id too, take default one
44+
* Tries to take store id from store HTTP parameter
4645
* @see Store
4746
*
4847
* @return int
4948
*/
5049
private function resolveStoreId() : int
5150
{
52-
$storeId = $this->getRequest()->getParam('store', false);
53-
$storeId = $storeId === false ? $this->getRequest()->getParam('store_id', Store::DEFAULT_STORE_ID) : $storeId;
54-
return (int) $storeId;
51+
return (int) $this->getRequest()->getParam('store_id', Store::DEFAULT_STORE_ID);
5552
}
5653

5754
/**

0 commit comments

Comments
 (0)