I got following use case and looking for options as well clarity on sling rewrite transformer factory, transformer.
mobile app will access AEM site urls with a query parameter "mobile=true" and header, footer needs to be hidden.
1. append query param "mobile=true" to all anchor elements hrefs
2. use sling rewrite transformer factory, transformer to transform all anchor urls.
3. store a cookie on first request and if cookie exists or url has query param - hide header, footer
Question: If I go in transformer route, does it transform only content urls that exists or does it transform all internal, external urls ?