Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.2-stable] fix(RoutingConstraints): Allow Turbo Stream requests #2916

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

alchemycms-bot
Copy link
Collaborator

Backport

This will backport the following commits from main to 7.2-stable:

Questions ?

Please refer to the Backport tool documentation

`rails-turbo` [registers a new request format](https://github.com/hotwired/turbo-rails/blob/e376852bfb273f69f4ebb54cf516b99fcbaa7acb/lib/turbo/engine.rb#L82-L89)

    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.

(cherry picked from commit 772a151)
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.97%. Comparing base (2e7a517) to head (fac8e09).
Report is 1 commits behind head on 7.2-stable.

Additional details and impacted files
@@             Coverage Diff             @@
##           7.2-stable    #2916   +/-   ##
===========================================
  Coverage       95.97%   95.97%           
===========================================
  Files             232      232           
  Lines            6279     6279           
===========================================
  Hits             6026     6026           
  Misses            253      253           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit e11cfc3 into 7.2-stable Jun 4, 2024
33 checks passed
@tvdeyen tvdeyen deleted the backport/7.2-stable/pr-2913 branch June 4, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants