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
Pradeepa Poluri 9Pradeepa Poluri 9 

Communities Email Author

Hi

We have a custom email page which uses '_ui/core/email/author/EmailAuthor?' to send email, the same functionality (the same VF Page)  I want it to work in Commmunities , the relative URL with in Communities is not working. How can we make this URL work in Communities ? Are there any workarounds . Please advise

Thanks
NagendraNagendra (Salesforce Developers) 
Hi Pradeepa,

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

Description:
In Partner Community, we are having issues with existing custom links and formula IMAGE references which we have configured as Relative.

i.e. Formula field to display image on page layout
IMAGE("/servlet/servlet.ImageServer?id=01520000001bBOb&oid=00Dg00000006REz", "ABCDE",20,20)

Custom link or button to redirect to a report.
/00O200000052erf

Please Note: 00O200000052erf is a report ID.

Issue is, since relative URL is directing to https://xxxxx.force.com/00O200000052erf but the actual report URL in community is https://xxxxx.force.com/partnercomm/00O200000052erf (With the community URL /partnercomm at the end). So when click on link https://xxxxx.force.com/00O200000052erf in partner community you’ll get messenger on page saying:

----------------------------------------------------------------------------------------------

https://xxxxx.force.com/partnercomm/ is under construction
Stay tuned. Please email us if you need to get in touch.

----------------------------------------------------------------------------------------------

What is the solution to make these buttons and links work in communities?

Resolution:

 
In formula field (image on page layout), solution is to remove the "/" to make it work.
 
e.g. IMAGE("servlet/servlet.ImageServer?id=01520000001bBOb&oid=00Dg00000006REz", "ABCDE",20,20)
 
In custom button or link URL, add “..” in front of the “/” in URL.

e.g. ../00O200000052erf

Please Note: 00O200000052erf is a report ID.

Tested with multiple communities (e.g. URL partnercomm and gpcomm) and it’s working fine.

Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra