- Issue created by @karlshea
- Merge request !4Clean paths to remove characters not allowed in a config entity name β (Open) created by karlshea
- Status changed to Needs review
2 months ago 8:09pm 13 September 2024
Drupal\Core\Config\ConfigNameException: Invalid character in Config object name backstop_generator.scenario.default_user-logout?token=fzL0Ox4jS6qafdt6gzGzjWGb_hsR6kJ8L8E0D4hC5Mo. in Drupal\Core\Config\ConfigBase::validateName()
Select a menu to generate scenarios that contains the user logout link.
Clean $id
in either createBackstopScenario()
or where it's called. ConfigBase::validateName
says that the characters
: ? * < > " ' / \
are not allowed.
One issue with stripping the entire query string (instead of replacing ?
) is that they may lead to different filters for Views. However some strings may change every time the configuration is saved, like the user logout token.
Needs review
2.0
Code