Skip to content

laytout:title-pattern doesn't include dynamic page titles #28

@adnansorg

Description

@adnansorg

In my content page content.html with the layout set to layout.html I have a title such as:

<title th:text="${user.name}"></title>

In the layout.html, the title pattern is used as following.

<title layout:title-pattern="$DECORATOR_TITLE - $CONTENT_TITLE">Website Name</title>

When using a normal static<title>User Details</title> without th:text the decorator correctly applies the title pattern as <title>Website Name - User Details</title> while the title with the dynamic th:text tag decorates the title as <title>User Details</title>

Am I doing this correct or is layout:title-pattern only able to apply to static title names?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions