Dynamic local tasks with different children that have the same route with different parameters

Created on 7 June 2024, 5 months ago
Updated 29 June 2024, 5 months ago

In a development that I have in progress I need to create menu links dynamically, with their respective children.

In my scenario, the children will be repeated for the different parents, having for example the following hierarchy:

Father 1 | Father 2

Son 1 father 1 | Son 2 father 1

If I click on Father 2 it should be seen:

Father 1 | Father 2

Son 1 father 2 | Son 2 father 2

But I see

Father 1 | Father 2

Son 1 father 1 | Son 2 father 1

Children are not constructed correctly, also is-active classes are not assigned correctly

The parent routes are the same with different parameters.

The children's routes are the same with different parameters.

That is, Father 1 and Father 2 have the same route with different parameters.

Son 1 father 1 has the same route as Son 1 father 2 and Son 2 father 1 has the same route as Son 2 father 2 with different parameters in each pair.

I think it may be complicated to explain, I hope you understand me.

Thanks.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
Menu systemΒ  β†’

Last updated about 19 hours ago

Created by

πŸ‡ͺπŸ‡ΈSpain Carlos Romero

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Carlos Romero
  • Status changed to Needs review 5 months ago
  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    I upload code for revision, it worked for me.

    Thanks.

  • Pipeline finished with Failed
    5 months ago
    Total: 172s
    #194016
  • Is this a bug or a feature request?

  • Status changed to Needs work 5 months ago
  • Pipeline finished with Failed
    5 months ago
    Total: 162s
    #194268
  • Pipeline finished with Failed
    5 months ago
    Total: 543s
    #194270
  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    Hello, I have corrected the syntax errors, now it passes the codesniffer and phpstan tests, but it gives errors in the tests, should I do something?

    Can I put the task in needs review status?

    Thanks and regards.

  • Merge request !8342Feature/3453326 11.x β†’ (Open) created by Carlos Romero
  • Pipeline finished with Failed
    5 months ago
    Total: 710s
    #194276
  • The test failures pertain to these changes so you will have to change the tests. But also we will need to understand why the tests are wrong.

  • Pipeline finished with Failed
    5 months ago
    Total: 203s
    #194769
  • Pipeline finished with Failed
    5 months ago
    Total: 205s
    #194770
  • Pipeline finished with Canceled
    5 months ago
    Total: 53s
    #194781
  • Pipeline finished with Failed
    5 months ago
    Total: 115s
    #194780
  • Pipeline finished with Failed
    5 months ago
    Total: 178s
    #194783
  • Pipeline finished with Failed
    5 months ago
    Total: 211s
    #194782
  • Pipeline finished with Failed
    5 months ago
    Total: 179s
    #194788
  • Pipeline finished with Failed
    5 months ago
    Total: 183s
    #194789
  • Pipeline finished with Failed
    5 months ago
    Total: 609s
    #194792
  • Pipeline finished with Failed
    5 months ago
    Total: 658s
    #194791
  • Pipeline finished with Failed
    5 months ago
    Total: 541s
    #194826
  • Pipeline finished with Failed
    5 months ago
    Total: 625s
    #194827
  • Pipeline finished with Failed
    5 months ago
    Total: 550s
    #194864
  • Pipeline finished with Failed
    5 months ago
    Total: 560s
    #194866
  • Pipeline finished with Failed
    5 months ago
    Total: 171s
    #194991
  • Pipeline finished with Failed
    5 months ago
    Total: 555s
    #194993
  • Pipeline finished with Failed
    5 months ago
    Total: 172s
    #196565
  • Pipeline finished with Failed
    5 months ago
    Total: 173s
    #196567
  • Pipeline finished with Failed
    5 months ago
    Total: 483s
    #196568
  • πŸ‡ͺπŸ‡ΈSpain Carlos Romero

    Hi cilefen, i'm working on fixing the tests, please don't close the issue.

    Thank you

  • Pipeline finished with Failed
    5 months ago
    Total: 175s
    #206586
  • Pipeline finished with Failed
    5 months ago
    #206594
  • Pipeline finished with Failed
    5 months ago
    Total: 164s
    #206659
  • Pipeline finished with Failed
    5 months ago
    Total: 662s
    #206661
  • Pipeline finished with Failed
    5 months ago
    Total: 487s
    #206901
  • Pipeline finished with Failed
    5 months ago
    Total: 492s
    #206990
  • Pipeline finished with Success
    5 months ago
    Total: 510s
    #207028
  • Pipeline finished with Failed
    5 months ago
    Total: 168s
    #211062
  • Pipeline finished with Failed
    5 months ago
    Total: 554s
    #211069
  • Pipeline finished with Failed
    5 months ago
    Total: 175s
    #211619
  • Pipeline finished with Failed
    5 months ago
    Total: 179s
    #211622
  • Pipeline finished with Failed
    5 months ago
    Total: 555s
    #211624
Production build 0.71.5 2024