Expand my Community achievements bar.

Page Export with out rewriting the client libs

Avatar

Level 1

Hi All,

Thank you for listing to my issue.

I am trying to export a page in AEM using exportpage API.

While exporting AEM is rewriting the CSS and JS URLs, in other words its making it relative to the page being exported.

But I dont see any option to stop AEM rewrite the CSS and JS URLs. I need these to start from root.


Can some one help here.

2 Replies

Avatar

Level 10

Whats your use case - why are you trying to export a page using this API. Are you trying to deploy to another AEM instance?

Avatar

Level 1

I need to use the exported page independently.

Like static pages when the AEM is down for maintainance.

Because of the relative path for css like "../../etc/design" if the url is like "domain.com/one/two/three/four" then the css url will become "domain.com/one/etc/design" which is wrong.