I am operating in an org:
https://myorg.lightning.force.com. If I call
URL.getSalesforceBaseUrl() from an apex class I get the base org URL back. If I then use the same command in a controller for a lightning component in a community I get the community's base URL:
Any ideas on how I can get the Org URL (
https://myorg.lightning.force.com) in a lightning component dynamically?