Questions tagged [base-url]

Denotes question regarding Magento Base URL

Each website in a Magento installation has a Base URL that is assigned to the frontend and to the Admin. If you have a security certificate for your domain, you can configure each or both base URLs to operate over a securely encrypted SSL channel. Unsecure base URLs begin with “http,” and secure base URLs begin with “https.”

176 questions
4
votes
1 answer

Magento 2 get admin base url in custom js

I have added custom js to create module for a functionality. I need to call ajax in my custom js but I need Base url of admin in js file. How I will get this? I tried function createBooking(){ orderId =4; if(orderId ==null){ alert('Order id…
konika
  • 579
  • 2
  • 7
  • 23
1
vote
2 answers

Base url and Whatsapp button (script embed with secure and unsecure url)

I'm trying to integrate Whatsapp button on my magento website. I added the following code to my head.phtml