Skip to content

Commit cf3310b

Browse files
committed
Merge branch 'MAGETWO-52994' into MPI-PR-3005
2 parents aafdb21 + 7041e6d commit cf3310b

File tree

1 file changed

+7
-1
lines changed
  • app/code/Magento/Cms/Block/Adminhtml/Page/Grid/Renderer/Action

1 file changed

+7
-1
lines changed

app/code/Magento/Cms/Block/Adminhtml/Page/Grid/Renderer/Action/UrlBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\Cms\Block\Adminhtml\Page\Grid\Renderer\Action;
77

8+
use Magento\Store\Api\StoreResolverInterface;
9+
810
class UrlBuilder
911
{
1012
/**
@@ -33,8 +35,12 @@ public function getUrl($routePath, $scope, $store)
3335
$this->frontendUrlBuilder->setScope($scope);
3436
$href = $this->frontendUrlBuilder->getUrl(
3537
$routePath,
36-
['_current' => false, '_query' => '___store=' . $store]
38+
[
39+
'_current' => false,
40+
'_query' => [StoreResolverInterface::PARAM_NAME => $store]
41+
]
3742
);
43+
3844
return $href;
3945
}
4046
}

0 commit comments

Comments
 (0)