Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you look at a single log event page, the breadcrumb should let you go back up a level to the whole log.
However, the last item in the breadcrumb is the 'Reports' admin landing page.
Comment | File | Size | Author |
---|---|---|---|
#15 | dblog-breadcrumb-2267053-15.patch | 2.39 KB | Daniel Norton |
#11 | dblog-breadcrumb-2267053-11.patch | 2.44 KB | iMiksu |
#7 | dblog-breadcrumb-2267053-7.patch | 1.71 KB | sidharthap |
#6 | dblog-breadcrumb-2267053-6.patch | 1.71 KB | sidharthap |
#3 | dblog-breadcrumb-2267053-3.patch | 493 bytes | emclaughlin |
Comments
Comment #1
larowlanThis always annoyed me
Comment #2
dawehnerYeah in theory this should just be the change in the dblog.routing.yml and the rest will be taken over automatically.
Comment #3
emclaughlin CreditAttribution: emclaughlin commentedDoes this have the right component? I assume that it's actually for dblog.module, not syslog.module. I've included a patch for dblog.module.
Comment #4
emclaughlin CreditAttribution: emclaughlin commentedComment #6
sidharthapchanging the paths in test file.
Comment #7
sidharthapoops .........
Comment #8
dawehnerNice!
Comment #9
alexpottWe should be asserting the breadcrumb is now as expected
Comment #10
iMiksuThree guys from our code sprint checking on this.
-- Miksu
Comment #11
iMiksuHere's same patch as in comment 7 with verifying the breadcrumb.
The test approach is similar as in
\Drupal\node\Tests\NodeTitleTest\testNodeTitle
, but I wasn't able to make this fail when not applying those fixes above.Comment #12
Nikolay ShapovalovIt's good for me. Nice patch. Thank you.
Comment #13
dawehnerlet's mark it as protected ... even there is no technical reason.
Can we pass along the $wid directly somehow?
Comment #14
Daniel Norton CreditAttribution: Daniel Norton commentedReviewing
Comment #15
Daniel Norton CreditAttribution: Daniel Norton commentedReroll for PSR-4 only
Comment #16
Daniel Norton CreditAttribution: Daniel Norton commentedComment #17
Daniel Norton CreditAttribution: Daniel Norton commentedRe comment, #13, those are good suggestions, but seem to me to be outside of the scope of this particular issue. The newly suggested issue applies to several other places in that same source file and the current patch simply duplicates those other instances.
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedI tested this patch in SimpleTest against a non-patched D8 core. This patch is showing the correct breadcrumbs path when viewing a dblog event.
Correct breadcrumbs with patch: Home-> Administration -> Reports -> Recent log messages
Incorrect without patch: Home -> Administration -> Reports
Comment #19
Daniel Norton CreditAttribution: Daniel Norton commentedComment #20
Anonymous (not verified) CreditAttribution: Anonymous commentedVerified the tests again (simpletest and phpunit) and marking this RTBC. Works in UI.
Recommended commit message: "Issue #2267053 by sidharthap, Daniel Norton, iMiksu, emclaughlin | joachim: Fixed breadcrumb is wrong on single log event pages."
Comment #21
alexpottCommitted c81a6ef and pushed to 8.x. Thanks!