Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Jan 2018 at 14:31 UTC
Updated:
29 Jul 2021 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hctom... and here is the proposed patch to fix this issue.
Comment #3
timmillwoodNice, find, and the patch looks great.
I guess we now need to test that the node title link gets the language option set.
Switching to needs work for that test.
Comment #11
longwaveRediscovered this following #3178534: Start running PHPStan on Drupal core (level 0)
I think we can just drop this code, as in the attached patch.
EntityBase::toUrl()already sets the language of the URL:Therefore NodeListBuilder doesn't have do anything additional here, as the language option is already set correctly, and this is just dead code that can be removed.
Comment #12
longwaveComment #13
longwaveFix unused use statement.
Comment #14
joachim commentedLGTM.
Comment #15
hctomLooks good to me as well! I guess existing test coverage should be enough to ensure this change does not break anything.
Comment #16
larowlanCommitted e41394e and pushed to 9.3.x. Thanks!
As there is little risk of disruption here, backported to 9.2.x