Skip to content

BUG: [2.1] pages created with the CmsPages Plugin with no channels assigned are visible in the menu => returns exception #59

@crydotsnake

Description

@crydotsnake

Description

I'm not sure if this issue is more related to the SyliusMenuPlugin plugin, or the CmsPages plugin.

I noticed that when you create a page with the CmsPages plugin and dont assign the page too a channel(s), the page gets rendered in the menu created by the CmsMenus plugin. If you click on the page, it returns a exception that the route for the specific page cant be found.

Steps to Reproduce

  1. Create a menu
  2. Create a page
  3. dont assign the page too a channel and save
  4. go to the shop frontend and click on the link too the page.

IMO the menu should only display pages that are also assigned to one, or more channels.

Package Versions:
Sylius: 2.1.7
CmsPages version: latest
CmsMenus version: latest

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