Vaadin Flow Route Title Configuration: Missing Precedence Rule Between @Route.pageTitle and getPageTitle()
0 reputation · 01 May 2024, 08:52 UTC
Vaadin Flow Route Title Configuration: Missing Precedence Rule Between @Route.pageTitle and getPageTitle()
The goal is to define a deterministic rule for the browser <title> when a Vaadin Flow component declares both a @Route(pageTitle = "…") annotation and overrides getPageTitle().
Current documentation does not state which source wins, and anecdotal reports show inconsistent results across Vaadin releases, making it unclear whether the annotation, the method, or a combination determines the final title.
Which source takes precedence when both are present? Does the precedence differ between Vaadin 23.x LTS and newer releases? Are there any known UI‑level title listeners or PWA mechanisms that can override the result?