Skip to content

Im trying to put a link using < a > tag inside a translate text. I got this using the next code

<?= $block->escapeHtml($block->getNoResultText() ? $block->getNoResultText() : __('Your search returned no results. Try searching in our <a target="_blank" rel="noopener" href="%1">Student Store</a>', $block->escapeUrl($this->getBaseUrl().'store/')), ['a']) ?>

I have no problem getting the link inside the text but for some reason the attribute target is not working

enter image description here

Is there something wrong in the code that im using?