Development

#4058 (Variable replacing in URL happens in wrong order)

You must first sign up to be able to contribute.

Ticket #4058 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

Variable replacing in URL happens in wrong order

Reported by: lunarmys Assigned to: fabien
Priority: major Milestone: 1.1.1
Component: routing Version: 1.1.0 RC2
Keywords: Cc:
Qualification: Unreviewed

Description

If one has the following in routing.yml:

url: /confirmation/:route/:id/:id_name

and redirect to the page via @confirmation?route=agency-edit&id=2&id_name=agency_id

it will redirect to /confirmation/agency-edit/2/2_name instead of /confirmation/agency-edit/2/agency_id

I'm guessing it's due to the variable replacing happens in the order of the fields (route, id, id_name) instead of the longest field -> shortest field (id_name, route, id)

Change History

08/01/08 18:01:14 changed by fabien

  • milestone set to 1.1.1.

08/01/08 18:01:44 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [10591]) [1.1] fixed variable replacing in URL happens in wrong order (closes #4058)

08/01/08 18:02:18 changed by fabien

(In [10593]) [1.2] fixed variable replacing in URL happens in wrong order (refs #4058)