Image location specification mstile

I am implementing a site where storing the browser config.xml at the root is awkward and hardcodes the location of the image slices inside the element to a relative path to the server, also undesirable, but it seems like the only way Windows 8.1 interprets this spec .

My main 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>

      

browserconfig.xml should 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>

      

Does anyone else encounter similar behavior?
From a common sense point of view, I would think that the src property should also take paths relative to the browserercofnig.xml file, but that doesn't seem to be the case.

+3


source to share


1 answer


at http://www.buildmypinnedsite.com/en

requires your browserconfig file to be in the root folder of your site.



assuming that you are placing a metaphorical image of the site on your site's landing page (in the root of your website).

then content = "browserconfig.xml" should work as expected.

+2


source







All Articles