You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, you can make a PATCH or POST request and set a page to use a non-existent page template. This would cause a twig rendering error and break the page.
We should validate that the template can be used (based on the currently active theme?) when attempting to change this, and throw a 400 Bad Request if the new template is invalid.
The text was updated successfully, but these errors were encountered:
Regaez
changed the title
Prevent pages using an invalid template
fix: prevent pages using an invalid template
Aug 7, 2019
At the moment, you can make a
PATCH
orPOST
request and set a page to use a non-existent page template. This would cause a twig rendering error and break the page.We should validate that the template can be used (based on the currently active theme?) when attempting to change this, and throw a
400 Bad Request
if the new template is invalid.The text was updated successfully, but these errors were encountered: