AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
839 stars 315 forks source link

fix(RoutingConstraints): Allow Turbo Stream requests #2913

Closed tvdeyen closed 4 months ago

tvdeyen commented 4 months ago

What is this pull request for?

rails-turbo registers a new request format

text/vnd.turbo-stream.html

which is used whenever Turbo redirects.

In order to handle those requests from - for example the messages controller - we need to allow this mime type to route into Alchemy as well.

Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.97%. Comparing base (294faa5) to head (772a151).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2913 +/- ## ======================================= Coverage 95.97% 95.97% ======================================= Files 232 232 Lines 6279 6279 ======================================= Hits 6026 6026 Misses 253 253 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

alchemycms-bot commented 4 months ago

💚 All backports created successfully

Status Branch Result
✅ 7.0-stable
✅ 7.1-stable
✅ 7.2-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details