Canonical entity route fails to render if configured via a view

Created on 29 June 2020, almost 5 years ago
Updated 19 May 2025, 7 days ago

The canonical entity route fails to render if configured via a view as it is the case for taxonomy terms by default.
Mitigation: Disable the views page.

Original report

When I try to visit taxonomy term page I'm redirect to 406 (not acceptable) error page.

In recent log messages there is this error:
Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException: No route found for the specified format custom_elements. Supported formats: html. in Drupal\Core\Routing\RequestFormatRouteFilter->filter() (line 65 of /app/web/core/lib/Drupal/Core/Routing/RequestFormatRouteFilter.php).

Similarly, I'm unable to create url if taxonomy term with the same name already exists.

>>> Url::fromUri('internal:/guide');
Symfony/Component/HttpKernel/Exception/NotAcceptableHttpException with message 'No route found for the specified format custom_elements. Supported formats: html.'

I will try to debug entity-view routes in CustomElementsControllerSubscriber.

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇸🇮Slovenia useernamee Ljubljana

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇹Austria fago Vienna

    Lupus Decoupled now has views support, thus I think there is a good solution to this problem now!

Production build 0.71.5 2024