You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of this file, we are generating a cms_sections XML sitemap with URLs like /{_locale}/section/{code}.
When you try to access the URL, you get a 500 because there is no $template variable. You get an error like Unable to find template "/show.html.twig" (looked into: /app/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /app/templates, /app/templates, /app/vendor/symfony/twig-bridge/Resources/views/Form).
IMHO, we should not generate section URLs in the sitemap, as the doc says. The sections look to be rendered using TWIG, e.g.: {{ render(path('bitbag_sylius_cms_plugin_shop_block_index_by_section_code', {'sectionCode' : 'blog', 'template' : '@BitBagSyliusCmsPlugin/Shop/Block/index.html.twig'})) }}
I could make a PR removing the URL section generation in the sitemap; what do you think?
For now, to avoid thous URLs to be added in the sitemap, I did a $container->removeDefinition('bitbag_sylius_cms_plugin.sitemap_provider.section');
The text was updated successfully, but these errors were encountered:
Because of this file, we are generating a
cms_sections
XML sitemap with URLs like/{_locale}/section/{code}
.When you try to access the URL, you get a 500 because there is no
$template
variable. You get an error likeUnable to find template "/show.html.twig" (looked into: /app/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views, /app/templates, /app/templates, /app/vendor/symfony/twig-bridge/Resources/views/Form).
IMHO, we should not generate section URLs in the sitemap, as the doc says. The sections look to be rendered using TWIG, e.g.:
{{ render(path('bitbag_sylius_cms_plugin_shop_block_index_by_section_code', {'sectionCode' : 'blog', 'template' : '@BitBagSyliusCmsPlugin/Shop/Block/index.html.twig'})) }}
I could make a PR removing the URL section generation in the sitemap; what do you think?
For now, to avoid thous URLs to be added in the sitemap, I did a
$container->removeDefinition('bitbag_sylius_cms_plugin.sitemap_provider.section');
The text was updated successfully, but these errors were encountered: