Page does not exist in "html" format Exception is thrown for templates that are configuard as headless. #105
-
Actual BehaviorIf now twig file exist for the template the exception get thrown. Expected BehaviorNo need to create the twig template files if the template should be used as headless. Steps to ReproduceHere is a link to the demo repo with the bug. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@mfehr94 the exception is only thrown when you are not requesting the page with If you use javascript server side (Next.js, Nuxt, ...) rendered implementation all request to |
Beta Was this translation helpful? Give feedback.
-
@alexander-schranz thank you for the explanation. My mistake was I did not change the |
Beta Was this translation helpful? Give feedback.
@alexander-schranz thank you for the explanation. My mistake was I did not change the
view
property in the template xml files. So there are two ways of doing this. Use<view>base</view>
or<view>pages/headless</view>
if you want to usetemplates/pages/headless.html.twig