The user is logged in into a community and there is a requirement to send a mail containing a link to the contact record of this user. So basically the need here is to get the salesforce org url (not community url) in the lightning component apex controller. Note: This URL should be got dynamically.
Had gone through various stites including the current with no solutions- 1)Get Org URL Via Web Service 2)Get Org URL from Lightning component