title: Problems with Routes (Symfony 5.0.11)
body: <p>I'm a beginner in Symfony and am using v5.0.11 as part of a work project (inb4: as its a work for the company I'm employed by, I have little control over updating the version).</p>
  <p>My issue is the following: I have a controller (that extends the &quot;CommonController&quot;) file that contains different routes leading to different URLs, supposed to be triggered by a multi-field form's button. The first route in this controller (except for the one leading to the main page) is &quot;@Route: /global/search/&quot; related to a &quot;globalSearch funtion&quot;. The following routes (eg @Route: /global/product_code/{product_code}) are defined further down the document, indented at the same level and are located outside of that first &quot;globalSearch&quot; function.</p>
  <p>Depending on the form's fields fill beforehand; it should send the user to a specific URL related to said field (eg: if I fill the &quot;product code&quot; category, it should send me to an address like &quot;/global/product_code/{product_code}&quot;.</p>
  <p>However, when I fill any field and press the button, it still sends me to the general search URL (&quot;global/search&quot;) instead of the one I routed above '&quot;global/product_code&quot; for example.</p>
  <p>Do you have any idea why that is ? I've gone down Symfony &amp; Doctrine docs but couldn't find any answer for it; and from what I read I can't prioritize routes as I'm in 5.0.11.</p>
  <p>Thanks in advance for any help.</p>
  <p>NB: as my work concerns a sector and company bound by secret to my country's governement &amp; multiple firms; I can't share the code online to 3rd parties; tho I will try to bring as many infos about the code as needed.</p>