Skip to content

Commit e3db1f0

Browse files
committed
MAGETWO-95377: Fixed wrong admin notifications behavior
1 parent 2d9c1e6 commit e3db1f0

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/AdminNotification/Block/Grid/Renderer

1 file changed

+6
-3
lines changed

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
namespace Magento\AdminNotification\Block\Grid\Renderer;
1212

13+
/**
14+
* Renderer class for action in the admin notifications grid
15+
*/
1316
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1417
{
1518
/**
@@ -39,9 +42,9 @@ public function __construct(
3942
*/
4043
public function render(\Magento\Framework\DataObject $row)
4144
{
42-
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' . __(
43-
'Read Details'
44-
) . '</a> | ' : '';
45+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
46+
$this->escapeUrl($row->getUrl()) . '">' .
47+
__('Read Details') . '</a> | ' : '';
4548

4649
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
4750
'*/*/markAsRead/',

0 commit comments

Comments
 (0)