way to bypass resource path mapping RRS feed

  • Question

  • Windows Store apps automatically maps generic resource paths like Images/logo.png into language specific paths like Images/en-US/homeregion-USA/logo.scale-100_contrast-white.png.   This apparently happens for <img src=...> as well as <script src=...>, and probably other situations too.

    This is impressive but unfortunately breaks dojo's own NLS library. The particular problem I'm seeing is when dojo tries to load dojo/cldr/nls/gregorian.js, but ends up with dojo/cldr/nls/en/gregorian.js.   The two files are not compatible with each other and I need to get the first one.

    Is there any way to bypass / temporarily disable the automatic mapping of paths?   Ideally I'd like to disable it for my single script mentioned above, something like:

    <script src="dojo/cldr/nls/gregorian.js" please-dont-remap-path=true></script>

    so that it fetches exactly the resource I asked for, but without side effects on the rest of the application.

    -- Bill

    • Edited by Bill Keese Monday, December 10, 2012 5:25 PM fix url
    Monday, December 10, 2012 5:24 PM

All replies

  • Hi,

    Please try to use the code as follow:

    <img src="ms-appx:///testimages/testimage1.png" />

    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, December 11, 2012 8:34 AM
  • Thanks for the suggestion, but it's still doing the remapping.   (I'm trying with a <script> tag rather than an <img>, but same thing.)
    Tuesday, December 11, 2012 8:44 AM