Closed brandonpayton closed 12 hours ago
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
This PR uses the current app location path as a basis for the PR preview URL.
npm run dev
npm run build
php -S localhost:8888 -t dist/packages/playground/wasm-wordpress-net
note: There are e2e test failures, but they seem to be the same as we were already seeing on trunk.
Let's merge this.
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
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)
npm run dev
npm run build
, runphp -S localhost:8888 -t dist/packages/playground/wasm-wordpress-net
, and manually test PR preview for WP PRs