Closed (fixed)
Project:
Pathauto
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2018 at 07:35 UTC
Updated:
28 Mar 2018 at 10:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
idebr commentedAttached patch updates the expected urls after #2767857: Add destination to edit, delete, enable, disable links in entity list builders was committed in Drupal core. I have not yet completed debugging on the failures in PathautoEntityWithStringIdTest
Comment #4
berdirYeah, those tests were interesting to fix. This might also fix a bunch of other issues that people were reporting since 8.4, did quite a bit of cleanup and shuffling things around.
Also made sure the destination tests work with different base paths.
Comment #6
idebr commentedChanges look great!
Regarding the test failures when testing against 8.4.x: The webform module had a similar problem where the destination query parameter is available in 8.5.x but not in 8.4.x. This was fixed by manually adding the destination parameter in the EntityListBuilder, so the assertion is correct against both 8.4.x and 8.5.x. Would you consider this a viable approach?
Related issue in Webform: #2904683: [Drupal 8.5.x+] EntityListBuilder now adds destination query argument to edit, delete, enable/disable operations / http://cgit.drupalcode.org/webform/commit/?id=3a9c4113cef8bc9efb874224b2...
Comment #7
berdir8.5 will come out very soon, my plan was to simply set testing to 8.5 already once I commit this. The whole point of doing that change by default was that we do *not* need to do it for every single list builder :)
Comment #9
berdirAdding the additional test coverage from #2946273: Alias is not generated when Pathauto widget is hidden, with credits.
Comment #11
berdirCommitted.
Comment #12
littlethoughts commentedIt seems that the workaround regarding https://www.drupal.org/project/drupal/issues/2946289 breaks compatibility with 8.3.
On saving an entity:
Comment #13
berdirYes it does. 8.3 is not supported by pathauto 1.1, I forgot to add a dependency, there is an existing issue about that.
Drupal 8.3 is no longer supported, you are using an outdated and insecure version.