You need to sign in to do that
Don't have an account?
Get the base URL directly in a client side LEX Component controller?
Is there any way to put code directly into the client side controller for a Lightning Component (the .js file) to grab the base URL for my Salesforce instance? I have an idea that it's pretty simple using a server side class. But I am wondering if it can be done without that server side Apex class.
You can try with JS code