renders a 404 page, stylized with layout. I believe this is because it is a "successful" render from the route, which plugs the layout via the router. However, if a 404 occurs because of Ecto.NoResultsError, the Not Found message is rendered without the layout.
The documentation states that this is to avoid circular issues for things like errors while rendering the layout. However, this should be able to be mitigated because Cuberacer's layout is stable.
Investigate any errors that could cause an error render, ensure that the layout can't generate any, then render the layout with these error pages (relevant forum thread)
The code
renders a 404 page, stylized with layout. I believe this is because it is a "successful" render from the route, which plugs the layout via the router. However, if a 404 occurs because of
Ecto.NoResultsError
, theNot Found
message is rendered without the layout.The documentation states that this is to avoid circular issues for things like errors while rendering the layout. However, this should be able to be mitigated because Cuberacer's layout is stable.
Investigate any errors that could cause an error render, ensure that the layout can't generate any, then render the layout with these error pages (relevant forum thread)