server.get( ' Include ' ,server.middleware.include,cache.applyDefaultCache,
function(req,res,next) {
...assume original code here...
next();
}
);
The result of navigating to the address below is an error page.
https://yourinstance/on/demandware.store/Sites-RefArch-Site/en_US/Page-Include?cid=about-us What is the correct way to use this controller route in an ISML template?
Show answerHide answer
Correct answer: B < isinclude url= " ${URLUtils.url( ' Page-Include ' , ' cid ' , ' about-us ' )} " >
Explanation
ExplanationIn SFRA, the `Page-Include` route is a special controller endpoint designed to be used with the `
The `
Why the Other Options Are Incorrect
A. `${Resource.msg('aboutus', 'content', null)}`
– This creates a hyperlink that points the shopper's browser directly to the `Page-Include` route. As the scenario states, navigating directly to this URL produces an error page. The `Page-Include` route is not designed to be a standalone navigable endpoint — it exists to be rendered inline via `
C. `
– There is no `
Reference
Salesforce B2C Commerce / SFRA documentation — ISML tags (`