SharePoint 2010 Fixing an Empty Browser Window Title


You develop a custom masterpage and find that the browser windows title is empty, showing only…

” – Windows Internet Explorer”

Thanks to Martin Hatch the solution is simple and somewhat baffling – another SharePoint curveball.

The masterpage markup for the HTML -> HEAD -> TITLE element should be on a single line, and not spread over multiple lines;

Good

<title id="onetidTitle"><asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"></asp:ContentPlaceHolder></title>

Bad

<title id="onetidTitle">

    <asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"></asp:ContentPlaceHolder>

</title>

Published by

Phil Harding

SharePoint Consultant, Developer, Father, Husband and Climber.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.