Skip to content

Image fallback not returned when crop is present #282

@mingard

Description

@mingard

Expected behaviour

A fallback image should be returned where the requested resource is invalid and a fallback is present in the FS and config.

Actual behaviour

When requesting a missing image, the app returns the fallback, however if the crop param is passed with the request, an empty JSON object is returned.

Steps to reproduce

  • Set a fallback image in CDN
  • Request a missing image
  • Observer: the fallback is displayed
  • Add a crop param e.g. ?crop=0,1,200,300
  • Observe: the fallback is no longer returned. Instead, an empty JSON object {} renders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions