Claudius
10 years agoBoss
How to obtain the fully qualified URL for Community
Since I was just searching for this a few minutes I thought it was worth sharing:
If would like to obtain the fully qualified URL for your community base page, e.g. http😕/testc.stage.lithium.com/ when youcomponent is run on stage, and http😕/testcommunity.lithium.com/ when acessing on production use the webuisupport context object like this:
${webuisupport.urls.fullyQualifiedPage.name.CommunityPage.build()
Initially I was shooting for ${community.urls.frontPage} but it only returns the relative URL, e.g. usually just "/" 😞