Redhen org & other canonical pages crash

Created on 1 May 2024, 8 months ago
Updated 12 September 2024, 3 months ago

Problem/Motivation

Any time I add an organization, when I go to site/redhen/org I get the following error:
"The website encountered an unexpected error. Try again later."

On the drupal log, I have the following:
"Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.redhen_org_type.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /var/www/siteurl/htdocs/core/lib/Drupal/Core/Routing/RouteProvider.php)."

Steps to reproduce

Add Org type, add an organization and then navigate to the org page.

I uninstall the module, reinstalled and try to add an org with no fields, and I still get the error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.1

Component

Shared

Created by

πŸ‡ΊπŸ‡ΈUnited States cfgregory

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

Comments & Activities

  • Issue created by @cfgregory
  • πŸ‡ΊπŸ‡ΈUnited States gcb

    This is a general issue in Redhen. Workaround: change the Org display behavior to NOT link to the Org type. You can display the type label, just don't link to it.

    Redhen is littered with missing route definitions unfortunately. It's not too hard to clean up. Here's a simple workaround for this problem on Connection Roles, but this ticket deserves a full workup where we actually provide canonical routes for our entities types and such.

    This patch adds the edit path, and also adds the edit path for a role as canonical: not ideal but certainly workable.

  • Assigned to gcb
  • πŸ‡ΊπŸ‡ΈUnited States gcb
Production build 0.71.5 2024