Closed (fixed)
Project:
Drupal core
Version:
8.1.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Dec 2015 at 01:13 UTC
Updated:
22 Mar 2016 at 02:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
paintingguy commentedComment #3
gnugetI think this one could be related with #2642260: Missing URL fragment for the comment's title link
I think ideally the permalink should be something like:
http://site.com/comment/XX#comment-XX
Comment #4
gnugetComment #5
gnugetWe decided to work on this before to fix #2642260: Missing URL fragment for the comment's title link, so I will assign it to me.
Comment #6
gnugetOk, a file with only the test and the patch attached.
Comment #8
chx commentedAaaaaargh we broke this again? And there was no test? Thanks for fixing it.
Comment #9
wim leersComment #10
alexpottHere's the drupal 7 version of this...
Should we be trying to replicate this functionality? To displace the comment in context?
Comment #11
larowlanWe have a sub-request in that controller - so I think it's functionally equivalent:
Related #2377849: Simplify what CommentLinkBuilder is doing - consider removing a lot of the functionality - comment links are high on my 'too generic to be of use and too rigid to modify' hit list.
Comment #12
gnugetI think we at least need to do what we do in D7 while we land #2377849: Simplify what CommentLinkBuilder is doing - consider removing a lot of the functionality
Comment #13
alexpottThis reveals more problems though...
Steps to reproduce:
comment/11#comment-11)Also the metatags on this page are interesting...
I'm trying to work out what this is going to mean for SEO and whether these link relations are at all correct.
Comment #14
andypostComment #15
gnugetThis new patch should fix the problem exposed by #13.
Comment #18
gnugetLet's see what the testbot says.
Comment #20
gnugetI think this is the good one!
Comment #21
gnugetOk the patch at #20 fix the bug exposed by #13, @alexpott please let me know if there is something to I can do to help with the SEO thing.
Thanks!
Comment #22
dawehner-1, please don't use
<current>all the time. Please do a git blame on those lines and see where those bits are coming from.Comment #23
gnugetThe git blame points to https://www.drupal.org/node/2351015 It seems to this was changed on purpose.
I will try to think in a different approach.
Thanks for the review.
Comment #24
gnugetNew approach. Let's see what the testbot says.
Comment #25
dawehnerThank you @gnuget, this is looking so much better!
We should really explain this here.
Comment #26
larowlanLooking good - one minor nit
CommentDefaultFormatter already implements ContainerFactoryPluginInterface so we can inject the route match service instead of using the singleton
Comment #27
gnugetThanks for your reviews.
In this patch I injected the route match and I added a comment for explain why we have to pass the route to the pager.
Comment #28
andypostLooks ready now
Comment #31
catchNits on the comments, did the following fix on commit.
Committed/pushed to 8.2.x and cherry-picked to 8.1.x, thanks!
Added review credit post-commit.
Leaving at 8.1.x due to constructor changes etc.