Skip to content

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

The /builder to /builder/builder.html redirect isn't working because nginx doesn't give us a chance to do custom redirects when:

  • a directory exists
  • that directory contains no index file

This PR fixes that redirect.

Implementation details

As a workaround, this PR adds a /builder/index.php file so nginx will invoke PHP and give us an opportunity to apply custom redirects.

This PR also fixes a few uses of deprecated string interpolation syntax.

Testing

Tested manually on the web host

@brandonpayton brandonpayton added [Type] Bug An existing feature does not function as intended [Package][@wp-playground] Website labels Aug 19, 2024
@brandonpayton brandonpayton requested a review from adamziel August 19, 2024 22:42
@brandonpayton brandonpayton self-assigned this Aug 19, 2024
@brandonpayton brandonpayton merged commit 6e63ee0 into trunk Aug 19, 2024
@brandonpayton brandonpayton deleted the fix-builder-redirect branch August 19, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package][@wp-playground] Website [Type] Bug An existing feature does not function as intended

1 participant