Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2014 at 22:25 UTC
Updated:
2 Mar 2015 at 22:54 UTC
Jump to comment: Most recent, Most recent file





Comments
Comment #1
larowlanComment #2
dawehnerIsn't the problem "just" that we choose a bad title and not rely on the comment label by default?
Comment #3
larowlanYes
Comment #4
hussainwebInitial attempt. Do you think this needs tests?
Comment #5
hussainwebHere is a screenshot with the patch.

Comment #6
larowlanYes please to test, can be phpunit if preferred.
Also I think changing route title would also resolve this
Comment #7
idebr commentedSettings to 'Needs work' per #6
Comment #8
nemethf commentedThe strange breadcrumb link is available on the comment delete confirmation page as well.
Comment #9
nemethf commentedI added a plus condition for comment delete route on the same way as in #4. Additionally the patch contains 3 tests for breadcrumb on comment pages:
Comment #10
sarav.din33 commentedI have tested the following three scenarios,
Checking breadcrumb links,
on comment edit (refer: Comment-edit.png) -> Showed comment title as link.

on comment delete confirm (refer: Delete-comment.png) -> Showed comment title as link.

on comment reply (refer: Comment-reply.png) -> Showed node title as link instead of comment title.

Comment edit, comment delete works fine. Comment reply page breadcrumb shows node title instead of comment title. Comment reply should show the previous comment thread title.
Comment #11
andypostWe need agreement on what to show in breadcrumbs
Comment #12
larowlanI think that comment reply should show the commented entity title - which is what we're seeing here - thoughts?
Comment #13
andypostMy pov:
1) add - commented entity link
2) reply - commented entity link + parent comment subject (could be link with #comment-num but expensive)
3) edit - commented entity link + current comment subject (could be a link as well), as node edit does now
4) delete - commented entity link + current comment subject (could be link as well)
Summary
- always Home >> Commented entity title link
- depending on action: parent or itself
Comment #14
andypostSuppose this should be like that
Fix for edit/delete is introduce proper title callback
fix for reply is display parent comment subject
Updated summary
@larowlan Do we need to separate issue to display comment parent subject
Comment #16
andypostfix tests by moving them to entity test
PS patch needs cleanup
Comment #17
andypostPatch for final review, the only question for me now:
- do we need to check at least "view" access to parent comment and commented entities before display in breadcrumbs?
Comment #18
larowlanlooks heaps better to me

manual testing
Spoke with @andypost about access on irc - he confirmed that the page not found exception thrown in CommentController::getReplyForm is adequate w.r.t access - as route-level access applies for all of the routes on which the comment breadcrumb builder is displayed.
Comment #19
alexpottCommitted 3edf291 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to issue summary.