Problem/Motivation
Trying to export a config_page for default_content module I'm getting this error:
exception 'UnexpectedValueException' with message 'External URLs do not have route parameters.' in /my/project/web/core/lib/Drupal/Core/Url.php:606
This is due to how Config Pages URLs are built.
Here are the steps to reproduce:
- Enable config_pages & default_content modules
- Create a config_page
- Try to export the config page using drush:
drush default-content-export config_pages 1 - Exception will be thrown
Proposed resolution
Create a custom normalizer ConfigPagesNormalizer to handle this exception and allow to export the config_pages.
Remaining tasks
User interface changes
None
API changes
New service provided as Normalizer for Config Pages
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | create_a_specific-2733195-2.patch | 1.51 KB | plopesc |
Comments
Comment #2
plopescHello,
Here is the patch proposed in the issue summary.
Thanks
Comment #4
shumer commentedFixed in RC4.
Comment #6
nortmas commentedAfter I updated the module to version RC4 I see an error:
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "config_pages.config_pages_normalizer" has a dependency on a non-existent service "rest.link_manager"
BTW: core module "REST" wasn't enabled.
I assume you have to add it to dependency list.
Comment #7
shumer commentedFixed in RC5