1

I want to add the login page geturl link when I click on the login link. What is the role of customer_account_login.xml in this and how to load the login page after clicking on the link?

Ashish Jagnani
  • 6,266
  • 7
  • 33
  • 70
Devendra
  • 74
  • 1
  • 8
  • 1
    Welcome to Magento SE. As it stands, the question is hard to read and understand. Please update the question with more details what you want to achieve and at least proofread it once. What's a "grturl"? – Fabian Schmengler Aug 22 '16 at 06:28

2 Answers2

4

You can do like this:

Put this line <?php echo $block->getUrl('customer/account/login') ?> in anchor tag href and try.

Mohit Kumar Arora
  • 9,951
  • 7
  • 27
  • 55
Ravi Thanki
  • 426
  • 4
  • 13
1
$objectManager  = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager= $objectManager->get('\Magento\Store\Model\StoreManagerInterface');
$url        = $storeManager->getStore()->getUrl('customer/account/login');
Khoa TruongDinh
  • 32,054
  • 11
  • 88
  • 155
Ashish Jagnani
  • 6,266
  • 7
  • 33
  • 70