Teaser links dissapeared after update from beta12

Created on 6 May 2024, 4 months ago
Updated 8 July 2024, 2 months ago

After updating from 6.0.0-beta12 to beta14-17, the links to the full content of teasers dissapeared (beta13 just crashes my site).
I grab the links in Twig via {{ content.links }}.
When checking the Twig dump of content, the only difference I can see is that an newline was removed in the newer beta's.
I hardly know what i'm talking about, so please tell me how I can provide more usefull info!

beta12

array:4 [▼
  "field_afbeelding" =>array:18 [▶]
  "_layout_builder" =>array:1 [▶]
  "field_body" =>array:18 [▶]
  "links" =>array:2 [▼
    "#lazy_builder" =>array:2 [▼
      0 => "Drupal\node\NodeViewBuilder::renderLinks"
      1 =>array:5 [▶]
    ]
    "#weight" =>2]
]

beta14-17

array:4 [▼
  "field_afbeelding" =>array:18 [▶]
  "_layout_builder" =>array:1 [▶]
  "field_body" =>array:18 [▶]
  "links" =>array:2 [▼
    "#lazy_builder" =>array:2 [▼0 => "Drupal\node\NodeViewBuilder::renderLinks"
      1 =>array:5 [▶]
    ]
    "#weight" =>2]
]
🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇧🇪Belgium mowgli4811

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mowgli4811
  • Hey Willem, could you share the error you are getting?

  • 🇧🇪Belgium mowgli4811

    Hi Doxigo

    I'm not getting an error. The actual link just disappeared from the html when updating to the new beta.
    See the attached screenshots.

    In the Twig file of my teaser component, I use this to extract the link:

    <div id="teaser-link">
        {{ content.links }}
    </div>
    
  • Okay that's not what Radix does. it shouldn't be a Radix issue. Radix does not modify the render array, it could possibly be your view mode, other contrib modules that is causing this. could you test to see if now you revert back to 6.0.0-beta12 it gets fixed?

  • 🇧🇪Belgium mowgli4811

    Switching between beta12 and beta17 without changing anything else, is how I made the screenshots. If the only thing I do is update/downgrade radix, and stuff gets messed up, is it still possible that another module is causing this?

  • Based on the screenshot provided, I see that it's radix:nav that can cause the issue, let me check and keep you posted

  • 🇧🇪Belgium mowgli4811

    Hey doxigo, have you had the chance to take a look?
    Maybe I should mention that this is my first time trying to update Radix.
    Should I do something extra on top of "composer upgrade" maybe?
    Greetings

  • Status changed to Fixed 3 months ago
  • Hey sorry for a real late reply Willem, I believe this is the main cause of your issue:
    https://git.drupalcode.org/project/radix/-/commit/4392391b126b2bfdf862955a705d5eaaf7a79d77

    The reason that your Sub-theme breaks is that of the parent change, so please check your Sub-theme links.html.twig file, and update your variables according to the changes.

    I am closing this ticket since this is a backward-compatibility issue which is out of my control. let me know if you managed.

  • Status changed to Active 3 months ago
  • 🇧🇪Belgium mowgli4811

    This was it! Thank you, I'm now on the latest version without issues :)

  • Status changed to Fixed 3 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024