Problem/Motivation
Trying to edit a search api page:
/admin/config/search/search-api-pages/search_api_global
I suddenly get the following error:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.search_api_page.canonical" does not exist.
in Drupal 11.2.5
I'm quite sure some weeks ago it was still working. Any ideas?
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork search_api_page-3554064
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
karlsheaI think Drupal 11 requires the canonical entity route to be defined.
Comment #5
anybodyThanks @karlshea! Did you test this already? Does it fix the issue?
Should we add a simple test for the canonical route to ensure it won't break again?
Comment #6
karlsheaYes, it fixed it for me.
Tests are already covering this, e.g.
ViewModeTest::testDefaultViewModeAndOverrides()is checking for a 200 trying to access "admin/config/search/search-api-pages" and without this patch I'm getting a 500 there.GitLab CI is not set up for this module so the tests aren't running.
Comment #7
anybodyThanks @karlshea!
Maybe you'd like to apply as co-maintainer? I created #3572395: Code style cleanup, tugboat, gitlab CI & basic Tests
Comment #9
karlsheaNot a bad idea!
Comment #12
anybody@karlshea could you please tag a new release? The last tagged release is still broken!
Thanks!
Comment #13
karlsheaDone! I've been running -dev on a couple of sites for a month now, seems good to me.