Skip to content

Rake comfy:cms_seeds:import fails to import pages with the same slug but different parents #913

@jefferya

Description

@jefferya

In the current (2026-01-23) CMS Gem,rake comf:cms_seeds:import used by the main branch, the services hierarchy will not be properly imported as the pages/index/services page (parent is index) slug collides with pages/index/francais/services (among other pages).

The issue #737 and PR #885 that replaces the CMS Gem will address this problem. The replacement CMS Gem includes the fix: shakacode/comfortable-media-surfer@648f720

The details:

The new CMS Gem:

child = site.pages.where(slug: slug, parent_id: parent.id).first_or_initialize

The current main branch's CMS Gem:

child = site.pages.where(slug: slug).first_or_initialize

Metadata

Metadata

Assignees

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