In Merge Request Form, the URL query parameter for "merge_request[squash]" is not honored by the form.

Summary

When defining a URL for a Create Merge Request Form, the query parameter for merge_request[squash] is not honored by the form.

Steps to reproduce

  1. Generate a URL for a Create Merge Request Form
  2. Add Query Parameter merge_request[squash]=1
  3. Form Input for "Squash" is still unchecked

Example Project

I have created an example project with a branch, the following is a URL to Create Merge Request with the query parameter merge_request[squash]=1:

https://gitlab.com/flip_as/squash-form-url-bug/-/merge_requests/new?merge_request%5Bsource_branch%5D=merge-this-please&merge_request%5Bsource_project_id%5D=23592745&merge_request%5Btarget_branch%5D=master&merge_request%5Btarget_project_id%5D=23592745&merge_request[squash]=1

What is the current bug behavior?

The query parameter for merge_request[squash] is not honored, and the input remains unchecked.

What is the expected correct behavior?

The query parameter should be honored and the merge_request[squash] input set to checked. Strangely, the merge_request[force_remove_source_branch] query parameter is honored, and the input corresponding input can be controlled using the query parameter (despite the markup being completely the same)

Output of checks

This bug happens on GitLab.com