Contents
How do you find the current URL in the lightning component?
you need to navigation component. component. find(“navigation”) . navigate({ “type” : “standard__recordPage”, “attributes”: { “recordId” : theNewContId, “actionName” : “view” //clone, edit, view } }, true);
How do I get the current URL in Apex?
How To Get Current Page URL In Apex
- String urlVal = Apexpages. currentPage(). getUrl();
- public void getPageURL() {
- String hostVal = ApexPages.currentPage().getHeaders().get(‘Host’);
- String urlVal = Apexpages.currentPage().getUrl();
- String URLL = ‘https://’ + hostVal+ urlVal;
- }
How to get Org url from lightning component dynamically?
If I then use the same command in a controller for a lightning component in a community I get the community’s base URL: https://mycommunity.aa11.force.com. Any ideas on how I can get the Org URL ( https://myorg.lightning.force.com) in a lightning component dynamically?
How to get my domain in Lightning controller?
Is there a simple way, in the controller for a Lightning component, to get the My Domain of the org? I would like to easily know the URL for login of the org this component is displaying in so that I could know mydomain .my.salesforce.com or mydomain .lightning.force.com.
Where can I find the Lightning component reference?
The Component Reference includes documentation and reference information for the base components. View this site by logging in to your Salesforce org and navigating to https:// .lightning.force.com/docs/component-library . Alternatively, click Link to your org at the top right on the public site.
Where can I find the Lightning aura Component Library?
You can find the Component Library in two places: a public site and an authenticated one that’s linked to your Salesforce org. In the authenticated site, the Component Reference section of the Component Library has some additional features.