Rewrite rules causing model.json to be requested twice
Hi,
We are setting up a new project, where the developers are making use of the AEM JSON exporter to create a file with the name "pagename.model.json" for an incoming request, which is then used by the Angular code on the browser to render the webpage.
I have added a rewrite rule to mask the path "/content/<project-name>" in the URL with the following rule.
RewriteRule ^/(.*) /content/<project-name>/$1 [PT]
The rewrite is working as expected for the HTML pages, however, the model.json files are being called twice once without the "/content/<project-name>" and once with it, which is causing a couple of issues in the page rendering.
Is there any way to eliminate the call with the content path?
