Missing routing.yml

Created on 20 December 2023, 6 months ago
Updated 22 December 2023, 6 months ago

Problem/Motivation

Compact date/time range formatter module seems to be missing a routing.yml file.
This file is important for setting up routes for the module's entity type.
Right now, without this file, we can't reach the admin pages for managing the entity, even though there are menu links in daterange_compact.links.menu.yml.

Drupal version : 10.2.0
PHP version : 8.1.25
Admin theme : gin
PHP OS : Linux

The module has a custom entity type called daterange_compact_format. It has menu links for adding, editing, deleting, and listing these entities. But, because there's no routing.yml file, these links don't work and lead to "Page not found" errors.

Steps to reproduce

  • Install module.
  • Go to /admin/config/regional/daterange-compact-format

Proposed resolution

We should add a routing.yml file to define routes for the admin pages of the entity.
This will make sure the menu links work and users can manage daterange_compact_format entities properly.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡²πŸ‡©Moldova man-1982

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @man-1982
  • Assigned to man-1982
  • Status changed to Needs review 6 months ago
  • πŸ‡²πŸ‡©Moldova man-1982

    This patch aims to enhance the daterange_compact module by ensuring that its configuration pages are accessible and function correctly. It also adds a layer of automated testing for future development and maintenance.

    Please review the attached patch and provide any feedback or additional testing from the community.

    Added daterange_compact.routing.yml and Functional Test DateRangeCompactRoutingTest.php

  • Patch #3 worked for me; however, it is missing an "Add" button on the config page, so I had to edit an existing format for this to work. I was able to manually get to the add page, but could not save the new pattern.

Production build 0.69.0 2024