Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-source-wordpress) HTML link replacement with relative path to include homepage #29841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karen-sarkisyan
Copy link

Description

This PR fixes a tiny problem in gatsby-source-wordpress plugin when HTML links pointing to WordPress homepage are not being processed into a relative path, effectively pointing to WP host, which may not be desirable. See issue #29417 for details.

I believe this fix should not introduce any bad unintended consequences.

I would highly appreciate any feedback on this PR, it's my first one. 馃コ

Documentation

There's no docs that need to be updated.

Related Issues

Fixes #29417

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 28, 2021
@karen-sarkisyan
Copy link
Author

karen-sarkisyan commented Feb 28, 2021

Oops, looks like I did something silly and 2 merge commits got here :(

Is it bad?

Update: It is bad so fixed it. I guess I won't use a shallow copy next time :)

@LekoArts LekoArts added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 1, 2021
@karen-sarkisyan
Copy link
Author

Upd: Resolved merge conflict, ran updated tests

@karen-sarkisyan
Copy link
Author

Hello Tyler @TylerBarnes !
Just checking in to know if there's something else I could do.
Maybe there's a bigger refactoring you are planning with links processing? I know there's a lot of work you're doing, I'd be happy to help where it's possible. 馃槉

@LekoArts LekoArts added the topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-plugins Relates to the Gatsby source plugins (e.g. -filesystem) topic: source-wordpress Related to Gatsby's integration with WordPress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Links to homepage still point to WP host after node processing
2 participants