The new mobility features for SharePoint 2010 are actually nice and improved over what was available in SharePoint 2007, however there are some instances (like public internet sites) where you REALLY don’t want SharePoint redirecting users to the default mobile pages. The bad news for administrators is there isn’t anything in Central Administration, or even disabling the “MobilityRedirect” SPWeb feature, people still get redirected to that All Site Content page. The only way in which I found how to disable the automatic redirection for mobile devices was to modify the “compat.browser” file in the virtual directory App_Browsers folder on the file system:
Once you open up the compat.browser file (using notepad or your favorite text editor), you will notice a bunch of entries for all the defined “mobile browsers” that SharePoint 2010 supports. To indicate a device as mobile the isMobileDevice property on the capabilities tag needs to be set to true (which is the default for almost everything in this file). To disable the mobility redirect automatically, change the value for isMobileDevice to false and save the file, no IIS Reset or application pool refresh is required for these changes to take effect. Here is a sample from an updated compat.browser file that I recently needed to modify:
You’ll notice that this specific entry is for the iPod Safari Browser, and that I flipped the isMobileDevice property to a value of false.
I got this tip from Randy Drisgill’s blog so I want to give some credit where credit is due. Of course there are other ways to get around this for developers to create your own redirect controls as documented in the SDK here.
["Brian"]
Posted
06-28-2010 12:12 PM
by
Brian Caauwe