Disable mobile pages for SharePoint 2010

By default SharePoint 2010 redirects mobile users to the mobile pages. Unfortunately there is no setting in Central Administration to disable the mobile redirect function.

Solution

1. On the server open the compat.browse file.

C:inetpubwwwrootwssVirtualDirectories[sitename]App_Browserscompat.browse


2. Change for each type of mobile browser the IsMobileDivice redirect setting.

<capability name= “IsMobileDivice” value=“true” />

to

<capability name= “IsMobileDivice” value=“false” />

Spaces in XSLT

Ever had a problem with rendering spaces in XSLT? I have. Most text can be placed directly in XSLT; however, when the text contains only a space, nothing will be rendered.

Example

<xsl:value-of select="@ProjectName"/> <xsl:value-of select="@ProjectStatus"/>


Example result

 ProjectnameGood

 

Solution
Place the space between the text tags and the space will be rendered correctly.

<xsl:value-of select="@ProjectName"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@ProjectStatus"/>


Result

 Projectname Good