sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Pictures with includeClientSideAssets options not displayed in Internet Explorer

Open lucmoco opened this issue 8 years ago • 5 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Pictures deployed with the "includeClientSideAssets": true option are displayed properly in all browsers.

Observed Behavior

As of April 03, 2018, in Internet Explorer only, such pictures are not displayed properly anymore.

image

Expected URL, correct in Chrome and Edge:

https://tenant.sharepoint.com/sites/addincatalog/ClientSideAssets/308960a1-2830-4d57-88e0-fb3ff11132a7/logosharepoint_dd109d6a09405eb4e6546c02e24a5595.svg

Actual (wrong) URL in Internet explorer, the GUID part is missing:

https://tenant.sharepoint.com/sites/addincatalog/ClientSideAssets/logosharepoint_dd109d6a09405eb4e6546c02e24a5595.svg

This used to work last week (on March 28, 2018). The problem has been observed in two different tenants.

Steps to Reproduce

  • Set-up an SPFx solution with the "includeClientSideAssets": true option.
  • Add a picture under src\webparts\myWebPart\assets
  • Display it in the web part as follows:
const pictureUrl = String(require("../assets/myPicture.svg"));
...
<img src={pictureUrl} />

lucmoco avatar Apr 03 '18 08:04 lucmoco

Same issue here

ghost avatar Apr 03 '18 10:04 ghost

We are looking into this, thx for submitting.

VesaJuvonen avatar Apr 03 '18 17:04 VesaJuvonen

Same here. I've just made copy of assets in ClientSideAssets library as a workaround but it has to be fixed. I'm waiting for fix.

Konradox avatar Apr 17 '18 16:04 Konradox

This issue has now been fixed and the change will start rolling out to production on May the 13th. Thank you for notifying us of this issue.

GrahamMcMynn avatar May 08 '18 16:05 GrahamMcMynn

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 28 '20 00:01 msft-github-bot