Hi Experts,
We have a use case to send the absolute or full URL's for localized assets/links configured from AEM in fragments. This is being consumed by another non aem application by making model json API call. The content fragments authored with links have relative URL's in JSON. Is there a way to achieve this without code changes at present in AEM 6.4.x version? If not, could you please let us know how we can achieve or go about this request?
Edit: This query is not related to custom components created using sling models or at component level. It's Absolute url for all assets and content links to be available for all content fragments created using a content model.
Thanks.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
If you are using Sling Model to send the URL to JSON, you can construct the Url explicitly in the URL variable
@ValueMapValue
@Deleted Account
private String fullurl;
@PostConstruct
private void activate(){
// build the Full URL with absolute path
fullurl = <<<construct -- path>>> ;
}
If you are using Sling Model to send the URL to JSON, you can construct the Url explicitly in the URL variable
@ValueMapValue
@Deleted Account
private String fullurl;
@PostConstruct
private void activate(){
// build the Full URL with absolute path
fullurl = <<<construct -- path>>> ;
}
Hi @SureshDhulipudi,
This is applicable for individual or custom component implemented using sling models, which is not relevant for our case. Our use case is to have absolute url for all assets and content links to be available for all the content fragments created using content model whenever a JSON GET call is made to it.
Thanks
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies