Skip to content

Article Link Doesn't Use Custom ExperienceCloud Domain #1

Open
@mayday6971

Description

@mayday6971

When creating article feedback using the LWC from a Community / ExperienceCloud site, we have noticed that the "Article Link" field shows https://.my.site.com//s/article/

. This ExperienceCloud site is aligned to a custom Domain in Salesforce and should use that DNS name if at all possible.

Expected Behavior
The Domain that is used by the LWC will use the Domain class to populate the "Article Link" field and not use the site.com name. Note that there may in fact be a bug in calling DomainCreator.getExperienceCloudSitesHostname() as we do not expect the site.com reply to come back but rather the Domain from the ExperienceCloud site.

This is the function I use, but I think there may be an issue with the DomainCreator class itself.

https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_sites.htm#apex_System_Site_getBaseSecureUrl

Steps to Reproduce

  1. Crete an ExperienceCloud Site.
  2. Add the LWC component to the Article Detail page.
  3. Align the ExperienceCloud Site to a custom Domain.
  4. Go to the URL of the custom Domain.
  5. Create new feedback using the form.
  6. View the submitted feedback and view the "Article Link" field. The site.com DNS address will be used and not the custom Domain of the ExperienceCloud site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions