Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Similar URL encoding patterns found - needs consistent fixes
The search results reveal that there are similar patterns of URL encoding in the codebase that should be handled consistently:
submissions/index.html.erb
:visualizations/_punchcard.html.erb
and_heatmap.html.erb
:The
raw
helper is already being used correctly in the visualization templates, but missing in the submissions view's Dolos button initialization, which likely suffers from the same double-encoding issue.submissions/index.html.erb
: Addraw
helper to prevent double encoding of the URL parameters🔗 Analysis chain
LGTM! The fix appropriately prevents URL double encoding.
The use of
raw
here is safe as all parameters are from trusted sources and properly escaped by Rails path helpers. This resolves the issue of URL parameters not being transmitted correctly to the backend.Let's verify if there are other similar patterns that might need the same fix:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 84
Script:
Length of output: 13966