Skip to main content

#Force com Sites Site com2 discussing

Hello,

I have a custom button which is type of URL. My URL is directing to a visualforce page. The behavior i chose is: Display in existing window without sidebar or header. However, still in my community page, it redirects me to another tab. Can i prevent this of happening? I need it in the same page.

Thank you.
3 answers
  1. Feb 24, 2023, 6:20 AM
    Hi Christos,

    I'm also facing the same issue. Did you find the solution to open the VF page in same tab via URL button? Also, would be great if can share the URL formulated in the button for VF Page redirection.

    Thanks,

    Komal
0/9000
  1. What is true about installing the Cloud craze managed package?
  1. The custom field limit is not impacted.
  2. A support ticket is required with sales force .
  3. The bandwidth exceeded limit is not impacted.
  4. Custom fields are limited to 100k.
  1. What is true regarding coupons with a type of ” General ”?
  1. There must be at least a source product or spec rules defined with a value
  2. There must be a coupon rule defined for both source and target condition.
  3. Coupons rules enable AND/OR conditions within the source or target condition
  4. There does not need to be a source or target rule defined for a general coupon.
1 answer
0/9000
I need to add a favicon to our Community. I found an article (https://help.salesforce.com/articleView?id=000167021&type=1) which has the following steps:-

1. Create 16x16 icon. Add the favicon as an .ico format

2. Upload as a static resource and make sure cache control attribute is set as public

3. Go to Setup > Develop > Sites and click on Edit for your Site. / If you are logged into Community Management go to Administration > Pages > Go to Force.com > and click on the Edit button. In the Site Favorite Icon field upload the desired favicon.

I followed these steps but the favicon is not yet appearing.
9 answers
  1. Jan 2, 2019, 2:55 PM
    This is now solved. I followed the steps on this blog: https://blogs.perficient.com/2017/08/01/favicons-your-salesforce-community-is-not-complete-without-one/

    The key step was this one:

    If you’re using a Lightning community, you can try adding the link to the favicon in the head markup from within the Builder. Go to Settings > Advanced > Edit Head markup and enter in the following:

    ​<link rel=”shortcut icon” href=”/resource/<faviconName>.ico” type=”image/x-icon” />
0/9000
Hi Team,

I have a community where we have to track community visits, as per this document, we have out-of-box feature can used.

https://help.salesforce.com/articleView?id=networks_reporting.htm&type=0

I Created the report for Network Public Usage Daily Metrics, but no records in that recport. I am confused why community visits are not logging here.
7 answers
  1. Jun 6, 2025, 3:11 PM

    Hi, Its too late to respond to this thread, but might help others who is looking for a solution. Salesforce collects site usage only in PROD not in sandboxes. Create the report type on `Networks` with child object as `Network Activity Daily Metrics` in PROD. Create a report on this new report type with filter on CreatedDate as All Time. It should show you some results. May not be very accurate in my view, but will be helpful you understand what's going on with your public site.

0/9000

Hi all, I have an issue which is working as expected in sandbox but due to domain difference its happening in production. We have two two separate communities with different domain on same salesforce org.

What we want is to allow the community user to be able to access both at the same time without having to login in into the other one once they have logged in, in a community.

2 answers
  1. May 5, 2025, 1:36 PM

    Hi @Swetha Maddali, thank you for the above information. 

     

    I’m facing a similar issue to what 

    @Azfer Pervaiz experienced, but I haven’t been able to resolve it yet.

    I’m having difficulty navigating a user from Community1 to Community2

    .  

    When I attempt to redirect using the URL: 

    https://site1URL/servlet/networks/switch?networkId=0DBxx000000006i

     

    I'm getting a Invalid Page error.  

    I'm trying to navigate from a LWR to a AURA. template based site. 

     

    Could you please review and advise if I might be missing something in the setup or configuration? 

     

    Any guidance would be greatly appreciated.

0/9000
Hi All,

For one of our client we have created a Napili Community with customized pages and lightning components.

Community user when does URL hack by changing the URL with record id followed by e, is able to access the particular object (profile has edit access for that object) in edit mode. How can we restrict the community user to access standard salesforce page by hacking.  

Any suggesstion will be welcomed!
4 answers
  1. May 31, 2019, 9:29 AM
    Hi Dixit,

    Greetings to you!

    Please refer to the below link which might help you further with the above issue.

    https://watchforce.blog/2017/09/21/preventing-standard-salesforce-pages-on-communities/

    I hope it helps you.

    Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

    Thanks and Regards,

    Khan Anas
0/9000
URL Redirect

Is there any wildcard or way to setup so it doesn't do an exact match.

 

I want to do a redirect anytime it hits a relative url like /detail/foo ... however if it has a querystring it ignores it  so this does nothing 

/detail/foo?id=xxxxxxxxxxxxxxxx

 

Tried a variety of different formats but no luck.  Not sure it is possible.

 

I need system to ignore parameters and if it matches /detail/foo it has to redirect, but not happening

Thanks
4 answers
  1. Apr 3, 2025, 12:05 PM

    @Abhishek Mudireddy

    - This is not at all helpful. Alias doesn't solve this purpose. Right now there is no solution for this and there is already an Idea which users can upvote. As a workaround, we need to build the logic javascript or apex to redirect users from the specific page. Thanks! 

     

0/9000
Greetings to all,

I am seeking assistance with an issue I've encountered. Within my current setup, I have an LWC component that functions as a screen component within a flow. This flow is called from another LWC component using the Lightning Flow feature. This entire system is hosted within the LWR Experience Cloud site.

While everything appears to function correctly when accessing this component within the Experience Builder, a problem arises once the site is published. Upon attempting to access the component in the published site, the following error emerges:

Something went wrong with the "LWC_Demo" screen component on the "Report Adhoc Hours" flow. Contact your Salesforce admin about this error. LWR3008: Error loading https://demo.develop.my.site.com/volunteers/webruntime/component/latest/prod/en-US/c%2FlookUpWrapper

On examining the Network calls in chrome, I can see the difference between the Experience Builder and the live site are

Experience Builder: https://demo.develop.live-preview.salesforce-experience.com/volunteers/webruntime/component/latest/prod/en-US/c%2FlookUpWrapper

Live Site: https://demo.develop.my.site.com/volunteers/webruntime/component/latest/prod/en-US/c%2FlookUpWrapper

While the component's JavaScript scripts are successfully retrieved and rendered in the live preview, attempting to do so in the published site results in the subsequent detailed error:

 

GET https://demo.my.site.com/volunteers/webruntime/component/latest/prod/en-US/c%2FlookUpWrapper net::ERR_ABORTED 404 (Not Found)

Refused to execute script from 'https://demo.develop.my.site.com/volunteers/webruntime/component/latest/prod/en-US/c%2FlookUpWrapper' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

 

I've undertaken the following measures:

a) Relaxed the CSP setting.

b) Added the site to CSP trusted sites.

c) Enabled CORS.

d) Disabled Lightning Locker.

e) Exposed the LWC component to communities with the specified targets.

  <apiVersion>57.0</apiVersion>

    <isExposed>true</isExposed>

    <targets>

        <target>lightning__AppPage</target>

        <target>lightning__RecordPage</target>

        <target>lightning__HomePage</target>

        <target>lightning__FlowScreen</target>

        <target>lightningCommunity__Page</target>

        <target>lightningCommunity__Default</target>

        <target>lightningCommunity__Page_Layout</target>

    </targets>

What else needed to be checked? I would greatly appreciate any insights or suggestions on resolving this matter.

Note: It was working a while back not sure what has changed resulting in this failure.
3 answers
  1. Feb 17, 2025, 7:21 PM

    I had the same LWR3008 error when I replaced the Aura File Upload component with the LWR File Upload component. The solution was to republish the LWR site. The error dissapeared.

0/9000
I have three pick list if i select first pick list as country then if other two picklist is blank then should get the error massage
1 answer
  1. Jul 25, 2016, 10:51 AM
    Hi Vijendra,

    I think you can go for dependant picklist option, i.e. when country is selected then dependant picklist will get updated  accordingly.

    But if you just want 3 different picklist irrespective to any dependancy then go for validation rule or process builder to automate the process.

    check with isblank option and then throw error message with addError. Or you can use trigger to make validation of picklist (whether they are blank or not)
0/9000
Hi All,

I am getting an error "/apex/Unauthorized" while attaching an image in Rich text box in a Public site. It is working fine in a VF page inside salesforce but not working in a public site. Please help me on this.

Thanks

Lakshman
4 answers
  1. Jan 10, 2025, 2:12 PM

    Setup -> User Interface -> Sites and Domains -> Sites -> (select your site) -> enable "Allow Access to Standard Salesforce Pages". This should fix the 404 problem.

0/9000