Skip to content

SharePoint image links no longer behave as direct image URLs #10492

@nakel-ola

Description

@nakel-ola

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

not applicable

Developer environment

macOS

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

Image links generated from SharePoint using the standard “Copy link” option have suddenly changed behavior.
These links previously returned the actual image file (JPG/PNG), which allowed them to be used directly inside <img> tags.

This week, the same links now return an HTML preview page instead of the actual image.
This change breaks existing integrations where users paste these links expecting them to behave like direct file URLs.

Direct file URLs (the ones containing the full library path and filename) continue to work normally.

Steps to reproduce

  1. Go to a SharePoint document library and select an image.
  2. Click Copy link and use the generated sharing link.
  3. Try to use this link as an <img src="..."> or fetch it expecting an image.
  4. The link returns an HTML preview page instead of the image binary.

Expected behavior

The sharing link should return the actual image file, as it previously did, so it can be used directly in <img> tags.

Metadata

Metadata

Assignees

Labels

sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.type:invalid-not-dev-issueThis repo+issue list is for SharePoint development topics. Non-dev issues will be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions