Replies: 2 comments
-
Hi, thanks for the issue! Before further digging into this issue, would you be up for switching to the latest WordPress version? It'll solve your problem by default: https://github.com/gatsbyjs/gatsby-source-wordpress-experimental/blob/master/docs/features/html-processing.md#gatsby-link |
Beta Was this translation helpful? Give feedback.
-
Thank you @LekoArts! I was trying the experimental WordPress source plugin, but it failed building. I created an issue there already and will probably be able to see if this works better for my project. |
Beta Was this translation helpful? Give feedback.
-
Summary
I'm using
gatsby-source-wordpress
and everything works fine. The WordPress content uses internal links which I want to change usinggatsby-plugin-catch-links
.In my implementation I'm putting the content from the graphQL query into the template like this:
The result is, that the links don't change at all and still point to the WordPress installation
What am I doing wrong? Is it even supposed to work like this?
Relevant information
Environment (if relevant)
System:
OS: Windows 10
CPU: (12) x64 Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.5.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
npmPackages:
gatsby: ^2.24.65 => 2.24.67
gatsby-image: ^2.4.19 => 2.4.20
gatsby-plugin-catch-links: ^2.3.12 => 2.3.15
gatsby-plugin-lodash: ^3.1.7 => 3.1.15
gatsby-plugin-netlify: ^2.1.12 => 2.1.25
gatsby-plugin-purgecss: ^4.0.1 => 4.0.1
gatsby-plugin-react-helmet: ^3.3.6 => 3.3.14
gatsby-plugin-sass: ^2.1.14 => 2.1.23
gatsby-plugin-sharp: ^2.6.36 => 2.6.38
gatsby-remark-images: ^3.1.21 => 3.1.32
gatsby-source-filesystem: ^2.3.29 => 2.3.34
gatsby-source-wordpress: ^3.3.34 => 3.3.38
gatsby-transformer-remark: ^2.8.35 => 2.8.38
gatsby-transformer-sharp: ^2.5.15 => 2.5.17
File contents (if changed)
I removed the WordPress URL for the sake of privacy, the actual installation has one.
gatsby-config.js
:package.json
:Beta Was this translation helpful? Give feedback.
All reactions