April 24, 2024

SamTech 365

PowerPlatform, Power Apps, Power Automate, PVA, SharePoint, C#, .Net, SQL, Azure News, Tips ….etc

Run SharePoint page on different browser version (by changing the compatibility meta tag)

The problem I was faced with today, was to embed twitter feed into a new SharePoint landing page.

The widget rendered fine in most of the browsers except IE 8,9 & 11 (Yes, some companies are still on these ๐Ÿ™‚ ).

I tried for couple of hours before trying IE Emulator, which allowed me to emulate the page in Edge, this resolved the problem.

Quickly I though of updating the master page by making it behave as if it was running in Edge, this was easily doable by following these steps :

1- Open SharePoint Designer and go to Master Pages

2- Make a copy of the actual master page (usually it is Oslo).

3- Rename it to something more user friendly (ex. Switch or Modern).

4- Open the new master page and locate in the head section

<meta http-equiv=”X-UA-Compatible” content=”IE=10″ />

5- Change the content to “IE=11”

6- Make the new master page default.