[6.x]: {% js %} block no longer executes on plugin utility pages
bug
### What happened?
### Description
I am not using the yii2-adapter package.
I noticed that {% js %} blocks that worked in Craft 5 no longer execute on custom plugin Utility pages in Craft 6.
Example:
```
{% js %}
document.addEventListener("DOMContentLoaded", function () {
alert('test');
});
{% endjs %}
```
### Expected behavior:
Script should be registered/executed
Alert should appear, same behavior as Craft 5
### Craft CMS version
6.0.0-alpha.4
### PHP version
_No response_
### Operating system and version
_No response_
### Database type and version
_No response_
### Image driver and version
_No response_
### Installed plugins and versions
-
关闭于 2026-05-27 3 条评论