[SalesForce] Visualforce page title is not set

The problem is pretty straightforward.
We are using page title attribute to set title for our vf community pages, like:

<apex:page sidebar="false" showHeader="false" controller="MemberHouseholdCont" title="{! $Label.union_MyFamily_PageTitle }" standardStylesheets="false">

For majority of pages everything works fine, i.e. defined custom title is displayed in browser. But for some pages (like the one with posted page tag above) attribute is completely ignored, i.e. there is no tag in the header of generated html markup, and default title is used (full url to the page).

I tried to compare pages structures, but so far I couldn't find the cause of such behaviour.

Any help would be appreciated.

Best Answer

Please check API version of your visualforce page. The documentation depicts below for title attribute

In pages set to API 29.0 or lower, if the showHeader attribute of is set to false, no element is generated.

Your VF page showHeader attribute is set to false. This may be the cause.

Documentation for your reference.

Hope it helps.

Related Topic