Skip to content

Error: Please use a direct link to an image like https://imgur.com/{id} or https://i.imgur.com/{id}.png #953

Open

Description

@cellularmitosis

Not sure what I'm doing wrong, but I keep getting this error, despite using an imgur URL (https://imgur.com/a/UbFrF8Z, or https://i.imgur.com/1QyjcMF.jpg)

Activity

  1. dazemc commented on Nov 8, 2024

    @dazemc
    Contributor

    Parsing issue, you can bypass by removing the preceding 'i' and '.png' from your link if you don't want to wait for the pr to be merged. Interesting though, the error says .png but imgur supports more than png. Maybe the regex should take this into consideration..... It looks like imgur handles the redirect for that itself so it actually doesn't matter. For example, https://imgur.com/1QyjcMF.png, https://imgur.com/1QyjcMF, and https://imgur.com/1QyjcMF.jpg

    All resolve to the same resource.

    There I just changed the PR to accept all imgur extension types

  2. FactorioBlueprints commented on Nov 12, 2024

    @FactorioBlueprints
    Owner

    @dazemc fixed the issue in the Create page. It's still a problem in the Edit page, so I'll leave this issue open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions