What am I missing for this CQ5/AEM URL rewriting scenario?

后端 未结 2 1598
清酒与你
清酒与你 2021-01-24 05:10

I basically want short URLs to get resolved and HTML pages to be generated with short URLs for a CQ5 website. So far short URLs are getting mapped to long URLs as expected, but

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-24 05:38

    By default, CQ rewrites links in a, area and form tags. If you'd like to rewrite also paths in script tag, open OSGi configuration for LinkCheckerTransformerFactory service on publish and add following string to the Rewrite Elements option:

    script:src
    

    BTW: /content is not the best place for storing clientlibs. Usually we put this stuff in /etc/designs/YOUR_APP.

提交回复
热议问题