Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Currently <front> is replaced with '' causing the user to add for each time the menu config link is edited.
This is because of the conditional that sets the default value
elseif ($url->getRouteName() == '<front>') {
// The default route for new entities is <front>, but we just want an
// empty form field.
$default_value = '';
}
Comment | File | Size | Author |
---|---|---|---|
#2 | 2687913-1-config_menu_link-front-default-value.patch | 679 bytes | grndlvl |
Comments
Comment #2
grndlvl CreditAttribution: grndlvl commentedI was able to resolve this within the conditional, however, I wonder why we are returning '' for any route name via getRouteName()... this seems like a mistake and we might want to adjust how we are creating the URL object via getUrlObject()?
In the interest of time I resolved on the issue within the form.
Comment #5
labboy0276 CreditAttribution: labboy0276 at Tandem commentedPatch applied, thank you