Closed chriscarrillo closed 2 years ago
Hi @chriscarrillo, thank you for reporting this.
The issue comes from @imgix/gatsby
, which is used for the url
, gatsbyImageData
, fixed
, and fluid
fields. I have submitted a PR to fix this. Once it is merged and published, I will publish a new version of gatsby-source-prismic
with the updated @imgix/gatsby
version.
Related PR: https://github.com/imgix/gatsby/pull/141
I know this is obvious, but for an immediate workaround, use a file without #
in the filename.
Hi @angeloashmore. Thank you so much!
Hey @chriscarrillo, the PR was merged and I just published new versions of the Prismic plugins.
gatsby-source-prismic
: v4.1.7
gatsby-plugin-prismic-previews
: v4.1.7
Could you try the updated versions and let me know if they work? Thanks!
Versions
Steps to Reproduce
Peter_#3.JPG
.<img />
element.<img />
element. Mine says:_Peter_ixlib=gatsbyFP&auto=compress%2Cformat&fit=max&q=50&rect=927%2C0%2C4160%2C4160&w=346&h=346
When testing the same scenario in v3, the src says:
_Peter_%233.JPG?auto=compress,format&rect=927,0,4160,4160&w=346&h=346
If I manually add
_%233.JPG
to the src given in v4 like so,_Peter_%233.JPG?ixlib=gatsbyFP&auto=compress%2Cformat&fit=max&q=50&rect=927%2C0%2C4160%2C4160&w=346&h=346
, then it works properly.Dependencies
What is expected?
Images with "#" symbols in its file name do not return 404's.
What is actually happening?
Images with "#" symbols in its file name return 404's. See above for the reproduction steps.
Comments
Unfortunately I can't provide a repository for this issue because this is an internal project. Nevertheless, thank you so much for creating this plugin! Please let me know if you need any further details regarding this issue. I appreciate any help you all can provide.