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.
On the front page, the page title is missing. This results in <title> | Drupal 8</title>
instead of <title>Home | Drupal 8</title>
.
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#16 | 2150123-16-node-add-page-title.patch | 1.75 KB | BarisW |
Comments
Comment #1
BarisW CreditAttribution: BarisW commentedComment #2
BarisW CreditAttribution: BarisW commentedBy the way; this happens when you have some content on the front page. To reproduce it, just create a node and visit the front page. Notice the page title in the browser window.
Comment #3
BarisW CreditAttribution: BarisW commentedComment #4
BarisW CreditAttribution: BarisW commentedAnd now with a test as well.
Comment #6
BarisW CreditAttribution: BarisW commentedComment #9
BarisW CreditAttribution: BarisW commented4: 2150123-4-node-add-page-title.patch queued for re-testing.
Comment #10
dawehnerPerfect!
Comment #11
amateescu CreditAttribution: amateescu commentedThis will do a full Drupal install (which adds a few seconds to the testing time) for a single assertion, wouldn't it be better to stick it in testDrupalIsFrontPage() and rename that one?
Comment #12
BarisW CreditAttribution: BarisW commentedAh, why not. Good point!
Comment #13
amateescu CreditAttribution: amateescu commentedThis should be public function ... ;)
Comment #14
BarisW CreditAttribution: BarisW commentedFine with me, but I only changed its name. It has always been without the 'public'? Should I add it?
Comment #15
amateescu CreditAttribution: amateescu commentedWell.. since we're already touching that line in the patch, we usually cleanup things like this as we go.
Comment #16
BarisW CreditAttribution: BarisW commentedComment #17
dawehnerFeedback got adressed. I kind of consider this as a major bug, given that this is the first impression of drupal for people.
Comment #18
amateescu CreditAttribution: amateescu commentedThanks, Baris! RTBC++
Comment #20
catchCommitted/pushed to 8.x, thanks!