Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The local tasks provided by the pathauto module are no longer present when using in combination with Drupal 8.8.
This is because of the changes made in #3007832: Convert custom path alias forms to entity forms. The route path.admin_overview
was updated to entity.path_alias.collection
.
Comment | File | Size | Author |
---|---|---|---|
#10 | 3088811-10.patch | 2.91 KB | Berdir |
#10 | 3088811-10-test-only.patch | 1.44 KB | Berdir |
#7 | 3088811-7.patch | 3.44 KB | JeroenT |
#7 | 3088811-7-test-only.patch | 3.44 KB | JeroenT |
#6 | 3088811-6-test-only.patch | 1.4 KB | JeroenT |
Comments
Comment #2
JeroenTPatch attached fixes the local tasks for Drupal 8.8 and makes sure it still works for older Drupal versions.
Comment #3
JeroenTComment #4
JeroenTComment #5
BerdirThanks I guess it makes sense to keep this separate from #3012050: Prepare for the conversion of path aliases to entities. Any chance you have time to add some basic test coverage for this? I might get to it in the next days if not.
Comment #6
JeroenTProvided some basic test coverage. Patch attached.
Comment #7
JeroenTComment #8
JeroenTHmm. It won't work using
LocalTaskIntegrationTestBase
because it won't pick up the changes made inpathauto_local_tasks_alter
Comment #9
BerdirYeah, that's IMHO too low-level and not that useful to test for core regressions.
I'd just expand our existing test at \Drupal\Tests\pathauto\FunctionalJavascript\PathautoUiTest::testPatternsWorkflow. In setUp(), place the locla task and local actions block, like \Drupal\Tests\views_ui\Functional\ViewsListTest::setUp.
And then in that test method, instead of going directly to patterns/add, go to the path page, assert the local tasks that we add, click on patterns, then click on the action. That should be enough and easy to make it work on D7 and D8.
Comment #10
BerdirSomething like this. Clicking on "Patterns" somehow didn't work as expected for me, this should be good enough.
Comment #12
BerdirNow it fails/passes as expected, thanks for the patch!
Comment #13
pyxio CreditAttribution: pyxio commentedi am having this same issue with drupal 8.7.8. using the already patched pathauto 8.x-1.x-dev
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.path_alias.collection" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 201 of /var/ww
the site is fine until i login and then this error and white screen of death. clearing caches do not bring the site back once i have attempted a login and received this error. i am really stuck now because i cannot login to make config changes. strangely, the site appears fine for anybody until an attempted login and then white screen and it can't be brought back.
can you please help? thank you
Comment #15
chema_ CreditAttribution: chema_ commentedI am having same issue than Pyxio but in 8.8.5
Any idea?
thanks