Skip to content

fix(faustwp): stop repeating the subdirectory in public route redirects - #2642

Draft
josephfusco wants to merge 2 commits into
canaryfrom
fix/1416-subdirectory-redirect
Draft

josephfusco wants to merge 2 commits into
canaryfrom
fix/1416-subdirectory-redirect

Conversation

@josephfusco

Copy link
Copy Markdown
Member

Fixes #1416

Reproduced on WordPress 7.0 with the site served from /wp: canary redirected /wp/sample-page/ to http://localhost:3000/wp/sample-page/ and this redirects to http://localhost:3000/sample-page/, query strings included, while root installs produce the same URL as before; the URL logic moved into get_public_redirect_url() because deny_public_access() exits and can't be unit tested.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with the fix, the integration tests, and reproducing the redirect against a subdirectory WordPress install.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Redirect Feature does not work when WP instalations is just on a different path to NextJS.

1 participant