This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

How to bypass "refreshLayout.html" restriction for page

Hello all,

In this line

of the apostrophe-templates module it states that a jquery get call will set the req.xhr and as a result the “refreshLayout.html” will be used, which mean you don’t get the entire page.

However this seems restrictive and we need a way to override it, because what if I actually just wanted the entire page for say animation purposes, or crawling purposes using jquery?

I am really stuck on this one, so any help would be appreciated. Something that comes to mind is just creating my own get endpoint and rendering the page, but it seems cumbersome at the moment.

Thanks,
FP

Hi Fotis, please post how-to questions like this to stackoverflow so that the answers are easily found. Be sure to tag them apostrophe-cms. Thanks!

Sorry tom, just did