Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mstile image location specification

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.

like image 232
Roman Avatar asked Oct 31 '22 13:10

Roman


1 Answers

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.

like image 70
Rob Parsons Avatar answered Nov 09 '22 13:11

Rob Parsons