Open
Description
Symfony version(s) affected
- 7.3.0
- 7.3.1
- 6.4.23
Description
Hello,
I notice weird behaviors with the Twig _self
special variable:
rm -rf ./var/cache/*
Then I generate the cache with the browser, I get :
<pre>
_self : {{ _self }}
</pre>
_self : App\Controller\HomeAction.html.twig
If I warm the cache with the CLI:
rm -rf ./var/cache/*
bin/console cache:warmup
When reloading the page, I get:
App/Controller/HomeAction.html.twig
We have slashes instead of backslashes this time.
I am on macOS.
How to reproduce
Possible Solution
No response
Additional Context
I was trying to use _self
as a translation prefix and I noticed this weird behavior.