function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sreenivasAppssreenivasApps 

getting Site Url in Home PageComponent?

how to get Site Url in HomePage component . 

 

Thanks in advance.

KodiKodi

Hi,

 

Follow this steps,

1. Go to Customize->Home->Custom Links

2. Create New Custom Links->Choose Content Source (URL) and mention your site URL link.

3. Create New Home Page Components->Select Custom Components

     Click New->Select Links->Add you have created Custom Links->Save

4. Go to Home Page Layouts->Click Edit->Enable the Checkbox you have created your Home Page Components -> Save

5. Finish

 

so, you will do this and check home page the site will be worked.

sreenivasAppssreenivasApps

Actually my question is - I am displaying 2 links by using Html area . when the link is clicked i am redirecting it to some page. 

Sandbox URL and Production URL s are different right . So dynamically it should take the URL Prefix and it should be redirected when we click on the links .(both in sandbox and production environments ).

I am using this component in Community Portal . Sites which are used in sandbox community and Production community are different .