Page title not changing on navigation

@Tag("admin-view")
@Route(value = ADMIN_VIEW, layout = MainLayout.class)
@PageTitle("Admin")
@SpringComponent
@UIScope
class AdminView extends VerticalLayout {

Shouldn’t the page title change when the menu bar in MainLayout navigates to the Admin view?