- Issue created by @solideogloria
- last update
10 months ago 30,056 pass - Status changed to Needs review
10 months ago 1:50pm 23 August 2023 - Status changed to RTBC
10 months ago 1:54pm 23 August 2023 - Status changed to Needs work
10 months ago 6:41pm 24 August 2023 - 🇳🇱Netherlands Lendude Amsterdam
We need an automated test for this to show we are actually fixing a core bug here.
I tried using the token in a text area and that didn't give any issues. The steps to reproduce use a contrib module so are there steps to reproduce this with just core?
+++ b/core/modules/views/views.tokens.inc @@ -12,7 +12,7 @@ - 'name' => t('View', [], ['context' => 'View entity type']), + 'name' => t('View'),
Why is this needed?
The issue is that the Url::toString() function counts as rendering. Rendering early will throw an exception if you are returning a response.
It happens when exporting because that hits a controller for a REST endpoint, I think, since you're downloading a file?
https://drupal.stackexchange.com/questions/187086/trustedresponseredirec...