Problem
When pressing "Edit" on the frontend of a canvas page, one is redirected to a page like /canvas/editor/canvas_page/1 on the frontend. However that fails since the ce-api of this page results in that error:
The website encountered an unexpected error. Try again later.<br><br><em class="placeholder">LogicException</em>: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead. in <em class="placeholder">Drupal\Core\Render\Renderer->render()</em> (line <em class="placeholder">219</em> of <em class="placeholder">core/lib/Drupal/Core/Render/Renderer.php</em>). <pre class="backtrace">Drupal\canvas\Controller\CanvasController->buildHtml() (Line: 129)
Drupal\canvas\Controller\CanvasController->__invoke() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 104)
Drupal\lupus_decoupled_ce_api\BackendApiRequest->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 53)
Asm89\Stack\Cors->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)
</pre>Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork lupus_decoupled-3551460
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
fagoComment #4
fagowith the child issues, bugs are fixed but the edit route results in a 406.
Let's configure suiting redirects with the new route-option now. So frontend opens in frontend and edit route in backend.
MR added, works fine.
Comment #6
fago