Skip to content

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

This fixes a problem with the PR preview URLs created by the PR preview modals in production.

Before this fix, a preview URL created by the modal in production looks like

https://playground.wordpress.net/null./?core-pr=7757#... 

cc @ajotka

Implementation details

This PR uses the current app location path as a basis for the PR preview URL.

Testing Instructions (or ideally a Blueprint)

  • CI
  • Test PR preview in web app with npm run dev
  • Run npm run build, run php -S localhost:8888 -t dist/packages/playground/wasm-wordpress-net, and manually test PR preview for WP PRs
@brandonpayton
Copy link
Member Author

note: There are e2e test failures, but they seem to be the same as we were already seeing on trunk.

Let's merge this.

@brandonpayton brandonpayton merged commit 07513f9 into trunk Nov 22, 2024
7 of 10 checks passed
@brandonpayton brandonpayton deleted the fix-pr-preview-paths-from-modals branch November 22, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment