Changeset 931b4cb in Klonkt for src/routes/activitypub.js

Timestamp:
06/28/2026 12:22:06 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
cca2e89
Parents:
0a58300
Message:

fix(proxy): tolerate leading double-slash paths (Apache [P] proxy)

A reverse proxy using 'RewriteRule (.*)$ http://localhost:3000/$1' sends for the root and
path for sub-paths (the captured $1 keeps its leading slash), which matched no Express route
→ the whole site 404'd behind such a proxy. Collapse leading duplicate slashes early so Klonkt
is resilient to that common Apache .htaccess setup.

(No files)

Note: See TracChangeset for help on using the changeset viewer.