- Issue created by @kenwest
- Merge request !97If multiple tours use a route name, then test each one in turn to see if it matches → (Open) created by kenwest
I want to have different tours for different node bundles. For example: a Blog tour when I add/edit a Blog; and an Article tour when I add/edit a Article.
node.add
- node_type:blog
entity.node.edit_form
- bundle:blog
The cause appears to be TourHelper::loadTourEntities() at line 93-103 which says "First loop get all route params". The foreach loop uses array_merge() to build $tour_params but that means parameters from the last route overwrite all the previous ones.
I don't know the code so I don't understand why "First loop get all route params" is present. Shouldn't each route be tested on it's own merits? I suggest we remove this loop and replace the use of $tour_params with references to $tour_route['route_params'].
Nil
Nil
Nil
Active
2.0
Code