Timeline for How to get Base URL in magento 2 admin script?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2020 at 13:51 | comment | added | Prits | Where in my phtml file i have to add var url = <?php echo $block->getUrl(''); ?> and then try to get url in js file. Am i correct please help ? @Hamendra | |
Aug 29, 2020 at 13:29 | comment | added | Hamendra Sunthwal | you need to add like var url = <?php echo $block->getUrl(''); ?> | |
Aug 29, 2020 at 12:18 | comment | added | Prits | Thanks for your response but When i added this script part in my phtml file and used this customUrl = window.customUrl; in my js file but it gives me undefined @Hamendra | |
Aug 29, 2020 at 10:49 | comment | added | Hamendra Sunthwal | Mark answer as right, it its helpful to you | |
Aug 29, 2020 at 10:10 | history | answered | Hamendra Sunthwal | CC BY-SA 4.0 |