Closed (fixed)
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2019 at 12:56 UTC
Updated:
7 May 2020 at 14:52 UTC
Jump to comment: Most recent, Most recent file
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
LocalTaskIntegrationTestBasebecause it won't pick up the changes made inpathauto_local_tasks_alterComment #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 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_ commentedI am having same issue than Pyxio but in 8.8.5
Any idea?
thanks