활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
What's the most efficient way, if it exists, to dynamically add (or automate) the canonical and HREFlang tags to pages, without manually adding <link rel=”canonical” /> onto head section of each page component? I've seen a possible solution (no JDK 11) in this library: https://github.com/otarsko/aem-seo-canonical-url
And third party tools for XML sitemaps like: https://www.stateofdigital.com/hreflang-sitemap-tool/
Any other options available? Thanks for any feedback!
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
you can use sling rewriter pipeline to parse page html and inject canonical and hreflang
https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/
Hi,
Checkout https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/wcm/api/va... for adding hreflang tags
Ex:
List<PageVariant> pageVariants = pageVariantProvider.getVariants(currentPage, slingRequest);
Thank you, @Ravi_Pampana we'll have to check this method out as well as the SAX transformer pipeline suggested by @arunpatidar. Appreciate your feedback!
you can use sling rewriter pipeline to parse page html and inject canonical and hreflang
https://wttech.blog/blog/2019/how-to-use-sling-transformers-in-aem/