Jump to content


Photo

How to Get Magento 2 URL in JS File

magento magento 2 magento 2 extension Get Magento 2 URL in JS File

  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 535 posts

Posted 19 July 2019 - 08:22 AM

Stuck in a situation where you want to get url from .js file and append it with your module controller link from? The solution is to get Magento 2 URL in JS file.

 

 

Get the solution at https://meetanshi.com/blog/get-magento-2-url-in-js-file/



looking for the best presta addons with outstanding support? check this: PrestaShop Modules