adds a new helper function that re-parses and normalizes a URL from its parts
updates the existing WP URL normalization function to use the new helper function.
pre-sets the endpoint option so the updated URL handling does not break existing sites expecting the endpoint to be at /wp/graphql while still allowing that option to be set via the plugin options.
adds Playwright tests (adapted from Canaries) that are run on all PRs
This resolves an issue where URLs were being interpreted incorrectly. Most notably, WP core library urls (e.g. to files like /wp-includes/js/dist/interactivity.min.js) were being rendered as https://dev-cxr-wpcm-canary-test.pantheonsite.io/wp-includes/js/dist/interactivity.min.js/?ver=6.5.5.
Additionally, this should resolve the issues with URL structure causing the canary tests to fail.
This pull request
/wp/graphql
while still allowing that option to be set via the plugin options.This resolves an issue where URLs were being interpreted incorrectly. Most notably, WP core library urls (e.g. to files like
/wp-includes/js/dist/interactivity.min.js
) were being rendered ashttps://dev-cxr-wpcm-canary-test.pantheonsite.io/wp-includes/js/dist/interactivity.min.js/?ver=6.5.5
.Additionally, this should resolve the issues with URL structure causing the canary tests to fail.