Skip to content

Slash in slug inconsistency #115

@acirtautas

Description

@acirtautas

There is inconsistency in cms page slug usage.

Admin interface allows slash usage in page slug (like in taxon) which is nice and useful, especially if used in collection.

But if I create a page with slash in the slug ("articles/article1"), page collection rendering crashed with an error:

An error occurred during rendering the "content_elements" hook in the "sylius_cms.shop.page.show.content.body" hookable. An exception has been thrown during the rendering of a template ("Parameter "slug" for route "sylius_cms_shop_page_show" must match "[^/]++" ("articles/article1" given) to generate a corresponding URL.") in @SyliusCmsPlugin/shop/content_element/elements/pages_collection.html.twig at line 18 in @SyliusCmsPlugin/shop/content_element/elements/pages_collection.html.twig at line 18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions