Forum Discussion

Akenefick's avatar
Akenefick
Genius
4 years ago

Trying to retrieve community URL with context object

I am using the following in a custom component:

${community.urls.communityPrefix}

It adds /sejnu66972 to the URL and the link doesn't work. I'm not sure what that is. I can use the actual URL but I would like it to work in both stage and production. Any help would be appreciated.