-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-wordpress] url rewriting for files no longer works when updating the wordpress page while dev server runs #35691
Comments
this is related to #35626 |
it appears that So the consequence is that when you have the dev server running and you update the page with the custom field, then the mp3 file link will not be replaced and the graphql query will return the original url. so at least when updating a page the following result is ignored: Line 335 in 7156882
During debugging I found that it works correctly if I clear the cache before (due to the fact that in that case we dont have any pre-cached media files and therefore, the file will actually be fetched from wordpress). Unfortunately I still have a similar problem in our production app where clearing the cache does not seem to work either. So it must be yet another issue. |
Turns out I had mp3 files ignored from downloading via mime type filters. So also in my production app the rewriting works. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Preliminary Checks
Description
It looks as if audio files within custom fields are no longer being downloaded and rewritten to local links in the case where you have a dev server running and update the page in wordpress. This used to work with gatsby <= 4.9.x.
Reproduction Link
https://github.com/gatsbyjs/gatsby-starter-wordpress-blog
Steps to Reproduce
** wp-gatsby
** wpgraphql
** advanced custom fields
** wpgraphql advanced custom fields
foofield
which is linked to postscontentField
of typewysiwyg
Expected Result
the HTML content in the custom field should contain an
<audio>
tag that contains the rewritten audio mp3.Actual Result
Note that the
src
attribute points to the original wordpress url of the mp3 file.Environment
Config Flags
N/A, none have been configured in the sample wordpress repo.
The text was updated successfully, but these errors were encountered: