Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mathias 47 posts 191 karma points
    Oct 07, 2020 @ 05:44
    Mathias
    0

    Images no longer being showed if used with query parameter

    For some odd reason the images on my site aren't being displayed when i suffix the src attribute of the img-tag with ?width=120 for example.

    The other strange thing is that this only occurs in production, when running the site locally or in our test environment all the images are being rendered - even with the query params.

    Another weird part is that this doesn't happend for all images either

    I haven't upgraded Umbraco recently either, and I am running version 8

  • Mathias 47 posts 191 karma points
    Oct 07, 2020 @ 05:48
    Mathias
    0

    This phenomenon also extends into the Backoffice. Where I've attempted to upload images, which are indeed uploaded. But their little preview-boxes are empty. When inspecting the element in the browser I can see that there's a query parameter on the image which makes it no render.

    I am really at a loss here, I have no idea what might have occured

  • Mathias 47 posts 191 karma points
    Oct 07, 2020 @ 05:54
    Mathias
    0

    And now, for some in-explainable reason, my images are being rendered.

    And the only thing I did was to first remove the ?width= param on the images, thus it was rendered, then I added badh the ?width= param, which should make it so the image aren't being rendered.

    But no, the images are being rendered either way now. I don't like this at all, there's something off here and if anyone has a theory of what is happening I'd much appreciate it

Please Sign in or register to post replies

Write your reply to:

Draft