Enable URL Shortening for links in OOTB Services/Servlet and Sling Exporters | Community
Skip to main content
PriyankaBiswal
Level 2
November 9, 2022
Accepted

Enable URL Shortening for links in OOTB Services/Servlet and Sling Exporters

  • November 9, 2022
  • 3 replies
  • 704 views
Request for Feature Enhancement (RFE) Summary: The OOTB Services and Servlet responses does not take care of link mapping for outbound URLs. As result of which , components such as Search Suggest and Search Results , Sling Model Exporters still contain long URLs . There should be some Link Rewriter Transformers or sling filters written for such cases to pass through these URLs via ResourceResolver.map(String resourcePath) . 
Use-case: SEO Improvements - Hide /content/project-name from Search results
Current/Experienced Behavior: The URLs returned contain long URLS like /content/project-name/
Improved/Expected Behavior: The URLs should be rewritten using some transformer or link rewriter or Sling Filter before returning response back 
Environment Details (AEM version/service pack, any other specifics if applicable): AEMaaCS 
Customer-name/Organization name: ODFL / Publicis Sapient
Screenshot (if applicable):

 

Code package (if applicable):

The Above example uses below OOTB Servlet , 

com.adobe.cq.wcm.core.components.internal.servlets.SearchResultServlet

3 replies

kautuk_sahni
Community Manager
Community Manager
November 16, 2022

@priyankabiswal 

Thanks for proposing this idea

This has been reported to the engineering under the internal reference SITES-9533/GRANITE-43121. The product team will triage this request to verify feasibility based on the prioritization model. This post will be updated according to the Jira request status.

Kautuk Sahni
kautuk_sahni
Community Manager
Community Manager
October 4, 2023

@priyankabiswal This has been accepted and added to the roadmap. I'll keep you posted with the update. 

Kautuk Sahni
June 17, 2024

@kautuk_sahni does this has an ETA? does this works on AEMaaCS?