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
Jonathan SpinkJonathan Spink 

My button works in Lightning but not in a Community

I have a Detail Page button with a URL which works in Lightning but not in a Community - instead it gives an 'Address is down for maintenance' error. The URL is:
/apex/VF17_CreateOrder?contactId={!Contact.Id}
The page itself has the 'Available for Lightning Experience, Experience Builder sites, and the mobile app' box ticked.
VinayVinay (Salesforce Developers) 
Hi Jonathan,

Try adding implements="forceCommunity:availableForAllPageTypes" and check below reference for community.

https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_lightning_community_builder.htm

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Jonathan SpinkJonathan Spink
Thanks Vinay. It doesn't use any aura components though. My actual solution (finally!) was to create a VF page button; the page contains just an apex:page tag and the URL below. Jonathan