Locked

The sling rewriter blocks the core text OOTB component with rte plugin

New Here ,
May 06, 2022 May 06, 2022

Copy link to clipboard

Copied

Hi, In my current SEO team mentioned regarding the internal redirects having ".html" and using dispatcher to redirect to 301 by replacing the ".html" page with a "/". Thus they want me to change all the internal redirects directly replace ".html" to "/" . i have used this blog ( https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/ )as a reference to create a sling rewriter along with a transformer to replace href links starting with "/". Everything works as expected . The transfomer replaces the ".html" with "/" for all the internal links. But the problem comes when the sling rewriter not run mode specific and had to SlingSettingsService to check for run mode and make the change specific to publish instance. Therefore the generatorType for the sling rewriter uses the htmlparser and for rte it runs a loop of transformer factory making the dialog invisible to author for core text rte component. Is there a way to resolve this.?

Saisagar5C77_0-1651830189366.png

Saisagar5C77_1-1651830220273.png

Saisagar5C77_2-1651830264039.png

Saisagar5C77_3-1651830280552.png

Saisagar5C77_4-1651830584621.png

core text component should show up with rte but the rte is missing after enabling the sling rewriter

Saisagar5C77_5-1651831142557.png

 

TOPICS
Bug , How to

Views

60

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 06, 2022 May 06, 2022

Copy link to clipboard

Copied

Adobe Experience Manager is not supported on these forums. Try here instead:

 

https://experienceleaguecommunities.adobe.com/

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 08, 2022 May 08, 2022

Copy link to clipboard

Copied

LATEST

thanks , will post it.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines