New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #3020522: Read more link is shown twice in featured #1161
Conversation
…read more link twice in featured blocks Signed-off-by: frankgraave <frankgraave@gmail.com>
…ge featured Signed-off-by: frankgraave <frankgraave@gmail.com>
This seems to have been introduced in #998 |
Looks logical, but not sure why this got introduced in the first place. |
As per Issue #2991405:
This is because we're using Bootstrap under the hood and Bootstrap expects its cards to be laid out this way to ensure that all the paddings are correct. It looks like in that original fix the links in the places of this PR were missed so removing that here is the way to go : ) We can actually get away with removing these blocks from |
…read me links from landingpages. This commit removes the duplicate block link code from the landing page featured templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the changes I mentioned and tested the changes by Frank.
Looks good to me!
@Kingdutch so this is reviewed and can be merged? |
Merged it to 8.3, 8.4 and 8.5 branches |
Btw, this is not completely true. We need that code in profile--featured because otherwise you get that issue again: Will solve it in a separate PR. |
…more link is shown twice in featured (#1161) * Issue 3020522 by frankgraave: remove double elements that showed the read more link twice in featured blocks Signed-off-by: frankgraave <frankgraave@gmail.com> * Issue 3020522 by frankgraave: also remove the card__link from node page featured Signed-off-by: frankgraave <frankgraave@gmail.com> * Issue #3020522 by frankgraave, robertragas, kingdutch: remove double read me links from landingpages. This commit removes the duplicate block link code from the landing page featured templates.
Problem
The "Read More" link is shown twice in Featured blocks on the Social Landing Page. This is happening because certain template files in the social_landing_page module are extended from node--featured.html.twig where the this one already has the card__actionbar with the card__link. These elements were also in the extended template file, which caused it to show twice.
Solution
Remove the card__link element from node--topic--featured.html.twig and node-landing-page--featured.html.twig since only these two had the duplicate elements.
Issue tracker
https://www.drupal.org/project/social/issues/3020522
How to test
Release notes
Fixed an issue where featured blocks in landing pages showed the Read More link twice.