Actions
Feature #40190
closedStop appending the utf8 checkmark parameter to form URLs
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Description
Ruby on Rails appends the "utf8=✓" parameter to form URLs. I propose to remove this parameter by setting config.action_view.default_enforce_utf8
to false
.
https://guides.rubyonrails.org/v7.1/configuring.html#config-action-view-default-enforce-utf8
The parameter is added to prevent older versions of Internet Explorer from encoding UTF-8 strings with Latin1. But Microsoft ended the support for Internet Explorer in 2021 and Redmine also dropped support for Internet Explorer in Redmine 5.0 (#34978). So, I believe the "utf8=✓" parameter is no longer necessary.
What is the _snowman param in Ruby on Rails 3 forms for? - Stack Overflow
Removing the "utf8=✓" parameter has the following benefits:
- URLs will be a bit cleaner
- The code to handle "utf8=✓" can be removed
- Problems caused by the parameter such as #31831 will never occur
Files
Related issues
Actions