Fix home and post-delete redirects behind a proxy URL prefix - #8112
Fix home and post-delete redirects behind a proxy URL prefix#8112AkprasadoP wants to merge 1 commit into
Conversation
PR Summary by QodoPreserve proxy URL prefixes on Home and post-delete redirects
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
627c35f to
d25d308
Compare
Code Review by Qodo
1.
|
Resolve the home URL relative to the current pad URL so deployments behind a reverse proxy prefix redirect to the Etherpad home page rather than the domain root.
d25d308 to
33cc0e8
Compare
What
Preserve the public URL prefix when navigating home from a pad and after a pad is deleted.
Why
When Etherpad is served behind a reverse proxy under a prefix such as
/etherpad, the Home command resolved../..from/etherpad/p/<padId>and redirected to the domain root. Post-delete redirects separately hardcoded/, causing the same problem.Changes
Fixes #8111
Tests
vitest run tests/backend-new/specs/getHomeUrl.test.tseditbar.spec.tsNote: ESLint could not be run locally because of a pre-existing ESLint/package compatibility mismatch.