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.

Name:  How-to-Get-Magento-2-URL-in-JS-File-Social-share.png
Views: 537
Size:  16.0 KB

Get the solution at https://meetanshi.com/blog/get-magen...rl-in-js-file/

View more threads in the same category: