I am implementing a site where keeping browserconfig.xml at the root of it is inconvenient and hard-coding the tile images location inside the element to a server-relative path is also undesirable, but it appears that's the only way Windows 8.1 interprets this specification.
My master page has the following html snippet:
<html>
<head>
<link rel="shortcut icon" href="/images/favicon.ico" />
<meta name="msapplication-config" content="/config/browserconfig.xml" />
</head>
<body> ...</body>
</html>
the browserconfig.xml has to use server-relative paths:
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/images/mstile-70x70.png"/>
<square150x150logo src="/images/mstile-150x150.png"/>
<wide310x150logo src="/images/mstile-310x150.png"/>
<square310x310logo src="/images/mstile-310x310.png"/>
<TileColor>#ffffff</TileColor>
</tile>
</msapplication>
</browserconfig>
Anyone else is encountering this sort of behavior?
From common sense perspective i would think the src property should take paths relative to the browsercofnig.xml file as well, but it appears not to be the case.
at http://www.buildmypinnedsite.com/en
a requirement is that your browserconfig file must be located in your site root folder.
assuming that you are placing the pinned site meta on your site landing page (located in the web root)
then content="browserconfig.xml" should work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With