#7 is working for me, Drupal 10.3 and latest menu_token 9.1.x. Thanks for the re-roll!
Thank you for this patch!
#11 worked to solve our problem. Any reason this has stalled out for more than 2 years? There are use cases where it's a pretty critical ability - get the root item, including if the current item is the root item.
Anyway, +1 RTBC!
+1 RTBC
Patch applied cleanly on 3.0.2, and solved errors I was receiving when trying to edit menu items that were created on node edit screens via the menu widget. When editing the item, the extra fields didn't appear on the form. When saving the item, I'd get:
Drupal\Core\Entity\EntityStorageException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'bundle' cannot be null: UPDATE "menu_link_content"
With the patch, newly created menu items are now fully editable. Thanks!
Hello! Sorry for the delay in responding; for some reason I didn't get a notification that this issue was reopened 5 years after it was closed. :)
I'd need more information about your View's setup to understand if this is working as designed or not. The module is very basic, and will replace certain tokens with the value from another exposed filter or contextual argument on the same View. Note that it will not pluck values out of arbitrary fields on the View; just exposed filters and contextual arguments. So, if "nid" is not an existing exposed filter's machine name, it won't be substituted.