Skip to content

Title of page not displayed correctly #3196

@cbos

Description

@cbos

What is your set up?

Self Hosted Docker

Version

3.5.12

Describe the issue

The returned title in the header is always empty:

<head>
    <title></title>

https://github.com/Leantime/leantime/blob/master/app/Views/Templates/sections/header.blade.php

<title>@dispatchFilter('page_title', $sitename)</title>

This should fill the header, but due to this change 9d748a0 this does not work anymore

I have done a local test:

    Title test: --@dispatchFilter('page_title', '$sitename')--
    Title test2: -- {{ $tpl->dispatchTplFilter('page_title', '$sitename'); }} --

Output:

Title test: ---- Title test2: -- New title --

{{ }} prints the value of the expression, while that is not done anymore by the directive.

Same issue is also with the Welcome text at
https://github.com/Leantime/leantime/blob/master/app/Views/Templates/layouts/entry.blade.php
This is not working anymore either

Reproduction steps

...

Error Logs (LEANTIMEFOLDER/storage/logs)

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions