Timeline for How to get Base URL in magento 2 admin script?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 30, 2020 at 6:01 | comment | added | Prits | Actually i just want Base Url ex: 127.0.0.1/magento in my admin js file and i have added code for xml file how i add my js file and my js file code Hope you got it please help @Mohit | |
Aug 30, 2020 at 5:10 | comment | added | Mohit Patel | Please clear your new actually problem ... | |
Aug 29, 2020 at 19:11 | comment | added | Prits | It gives me customer/account/login in console. I have updated my adminsample_sampletwo_index.xml and js file. Please check @Mohit | |
Aug 29, 2020 at 17:18 | comment | added | Mohit Patel |
Hello @Prits i have update my answer.And i have change defined Instead require
|
|
Aug 29, 2020 at 17:16 | history | edited | Mohit Patel | CC BY-SA 4.0 |
added 1 character in body
|
Aug 29, 2020 at 17:13 | comment | added | Mohit Patel | please share your full code ... | |
Aug 29, 2020 at 17:12 | comment | added | Prits | Thanks for your response but it gives me an error : Uncaught Error: Mismatched anonymous define() module: function (urlBuilder) { var customLink = urlBuilder.build('customer/account/login'); console.log(customLink); } will you please help @Mohit | |
Aug 29, 2020 at 16:48 | history | answered | Mohit Patel | CC BY-SA 4.0 |