self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

fix: have caddy apply url prefix to relative redirects from services

Open Docteh opened this issue 8 months ago • 2 comments

…g with /

Definitely required for autumn, as /autumn/attachments/:id: will redirect to /attachments/:id:/:filename: But we want the browser to redirect to /autumn/attachments/:id:/:filename:

Speculatively added for the other services

Please make sure to check the following tasks before opening and submitting a PR

  • [x] I understand and have followed the contribution guide
  • [x] I have tested my changes locally and they are working as intended

fixes #137

Docteh avatar May 13 '25 05:05 Docteh

I guess I need to limit git commit titles to 70 characters. oops.

Docteh avatar May 13 '25 06:05 Docteh

Tweaked the commit message so that the title is now under 70 characters


fix: have caddy apply url prefix to relative redirects from services

Definitely required for autumn, as an example /autumn/attachments/:id: will redirect to /attachments/:id:/:filename: But since we are self-hosting, the requester (client) actually needs to be redirected to /autumn/attachments/:id:/:filename:

Speculatively added for the other services

Docteh avatar Jun 11 '25 19:06 Docteh