Jump to content


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


    Advanced Member

  • Members
  • PipPipPip
  • 236 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

Also tagged with one or more of these keywords: magento, magento 2, magento 2 extension, Get Magento 2 URL in JS File

IPB Skin By Virteq