59257[BUGFIX] Do not link to untranslated records
Commit message
Review
-
Code review CR +2 Done
- Benni Mack +2
- Jochen Roth +1
-
Verified V +2 Done
- Benni Mack +2
- Jochen Roth +1
- core-ci +1 CI
Issues 1
Files 4
- typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php5+18 −3
- typo3/sysext/frontend/Tests/Functional/SiteHandling/Fixtures/TypoLinkScenario.yaml+9 −2
- typo3/sysext/frontend/Tests/Functional/SiteHandling/TypoLinkGeneratorTest.php+13 −5
- typo3/sysext/frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php+4 −2
Review log 2538
Show 813 earlier messages
-
Mathias Brodala uploaded patch set 1 12/21/18, 13:57
-
TYPO3com voted on patch set 1 V -1 12/21/18, 14:12 Completed build in 15m 01s on Fri, 21 Dec, 03:12 PM Test Summary: 837 of 48613 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-31028
-
TYPO3com commented on patch set 1 04/29/19, 20:41 Completed build in 14m 23s on Mon, 29 Apr, 10:41 PM Test Summary: 2046 of 47861 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-33660
-
Susi Moog commented on patch set 1 04/29/19, 20:47
-
TYPO3com voted on patch set 1 V +1 01/19/20, 09:11 Completed build in 13m 46s on Sun, 19 Jan, 09:11 AM Test Summary: 70442 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-40076
-
Susi Moog uploaded patch set 2 01/25/20, 11:38
-
Susi Moog voted on patch set 2 CR +1 01/25/20, 11:55
-
TYPO3com voted on patch set 2 V -1 01/25/20, 11:56 Completed build in 14m 43s on Sat, 25 Jan, 11:56 AM Test Summary: 54 of 71032 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-40214
-
Susi Moog uploaded patch set 3 01/25/20, 13:03
-
TYPO3com voted on patch set 3 V +1 01/25/20, 13:15 Completed build in 11m 15s on Sat, 25 Jan, 01:15 PM Test Summary: 70582 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-40219
-
Susi Moog voted on patch set 3 V +1 CR +1 01/25/20, 15:20
-
Daniel Goerz commented on patch set 3 V -1 01/25/20, 16:46
In master the translated links to the untranslated (extbase) records do not lead to 404 pages for me but to the default record, no special config AFAICS. With the patch applied the records are no longer linked which I would consider a bug if I'd rely on the current behavior. -
Susi Moog commented on patch set 3 V 0 CR 0 01/26/20, 07:43
> Patch Set 3: Verified-1 > > In master the translated links to the untranslated (extbase) records do not lead to 404 pages for me but to the default record, no special config AFAICS. > > With the patch applied the records are no longer linked which I would consider a bug if I'd rely on the current behavior. Hmm, depends ;) My problem with the fallback is: having a link to a non-translated element now results in switching of the language context of the site if clicked - which is very unexpected from a users perspective - I'd rather not link elements at all then. But I agree that this depends on what you would expect. - v8 never switched the language context (always attached the L param even though that might result in broken links) - v10 content element links also keep the language context (and link / anchor to non-existing values if the element is not translated) - v10 page links result in 404s but keep the language context so basically, record links doing a fallback is kind of weird in comparison. They should either not link or keep the context.
-
Markus Klein commented on patch set 3 03/27/20, 10:18
See also #90850 -
Benni Mack commented on patch set 3 06/04/20, 19:31
DatabaseRecordLinkBuilder.php:55In general this is OK, but if we use the $tsfe->sys_page->getLanguageOverlay() method we don't have to fetch the context and aspect. What do you think? -
Mathias Brodala commented on patch set 3 01/07/21, 15:37
DatabaseRecordLinkBuilder.php:55ReplySorry for the very late reply: this doesn't work unfortunately since getLanguageOverlay() will just return the original row without any additional hint. So we cannot determine if no overlay was found or the current row simply matches the current (default) language. -
Mathias Brodala uploaded patch set 4 01/07/21, 15:41
-
Mathias Brodala uploaded patch set 5 01/07/21, 15:41
-
TYPO3com voted on patch set 4 V -1 01/07/21, 15:52 Completed build in 10m 47s on Thu, 7 Jan, 03:52 PM Test Summary: 1814 of 31315 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-8742
-
TYPO3com voted on patch set 5 V -1 01/07/21, 15:54 Completed build in 12m 21s on Thu, 7 Jan, 03:54 PM Test Summary: 30763 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-8743
-
Mathias Brodala rebased onto patch set 6 02/05/21, 08:11
-
TYPO3com voted on patch set 6 V -1 02/05/21, 08:30 Completed build in 13m 15s on Fri, 5 Feb, 08:30 AM Test Summary: 1 of 32826 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-9280
-
core-ci voted on patch set 6 V +1 02/05/21, 08:34 Core CI is happy: https://core.b13.com/typo3-core/typo3.cms/-/pipelines/398
-
Benni Mack updated the commit message in patch set 7 11/18/21, 10:37
-
Mathias Brodala commented on patch set 7 11/18/21, 10:41
DatabaseRecordLinkBuilder.php:58ReplyDone -
core-ci voted on patch set 7 V -1 11/18/21, 11:12 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/19447
-
Benni Mack wrote 11/29/21, 10:16
Change destination moved from master to main -
Benni Mack updated the commit message in patch set 8 11/29/21, 14:02
-
core-ci voted on patch set 8 V -1 11/29/21, 18:23 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/20077
-
Benni Mack uploaded patch set 9 12/22/21, 11:07
-
core-ci voted on patch set 9 V +1 12/22/21, 11:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/21392
-
Benni Mack uploaded patch set 10 12/23/21, 11:12
-
Benni Mack commented on patch set 10 V +1 CR +1 12/23/21, 11:12
DatabaseRecordLinkBuilder.php:55ReplyDone -
core-ci voted on patch set 10 V +1 12/23/21, 11:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/21419
-
Jochen Roth voted on patch set 10 V +1 CR +1 12/23/21, 16:10
-
Benni Mack voted on patch set 10 V +2 CR +2 12/23/21, 16:20
-
Benni Mack merged patch set 11 12/23/21, 16:20
-
Mathias Brodala commented on patch set 11 12/27/21, 08:43
Thanks a lot for finishing this!
DatabaseRecordLinkBuilder.php:58