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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't translate relative links #393

Merged
merged 2 commits into from
Feb 23, 2024
Merged

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Feb 22, 2024

The parser already excludes anchor links, such as #main but includes root-relative and page-relative urls.

These likely don't need to be translated, and probably shouldn't be.
These probably shouldn't usually exist in the source-content, but have benefits, such as being untranslated after this change.

Example changes included.

How to test the changes in this Pull Request:

  1. yarn build:patterns
  2. Test.

@dd32 dd32 added the [Component] Tools Build tools, packages, etc label Feb 22, 2024
Copy link
Contributor

@ryelle ryelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update also looks good, and makes sense to me 👍🏻

I'm assuming the test failure is related to the "the upstream mariadb+wp-env issue" from the other parser PR?

@dd32
Copy link
Member Author

dd32 commented Feb 23, 2024

I'm assuming the test failure is related

100%, that issue is now resolved, so I've re-run the unit tests and they're now passing.

@dd32 dd32 merged commit dd6c3bf into WordPress:trunk Feb 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Tools Build tools, packages, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants