0

I am trying to link to Login page, but my link is only redirecting to my home page. Here is what I am trying.

 $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
 $block = $objectManagerLinks->get('\Magento\Backend\Block\Page\Header');

In my div

echo __('<b><a href="%1" class="headlink">LOGIN</a></b>', $block->getLoginLink());

1 Answer 1

1

Does this work for you

<?php echo $block->getUrl('customer/account/login'); ?>
1
  • Magento2 for the win!
    – Bobadevv
    Jan 28, 2016 at 22:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.