fix(router): re-encode decoded rest segment for 3-segment proxy paths #68

Merged
zaelgohary merged 1 commit from development_fix_proxy_path_reencode_on_decoded_rest into development 2026-04-28 10:42:53 +00:00
Member

Summary

OnlyOffice emits cache URLs with _ percent-encoded as %5f, which broke the previous strip-the-literal-prefix approach and routed requests to /admin/. Now uses the decoded rest from axum and re-encodes per path segment.

Changes

  • Replaced literal-prefix-strip with per-segment urlenc on the decoded rest
  • Added a tiny RFC 3986 unreserved-set urlenc helper (no new dep)

Test Results

Live curl on herodev: /cell/edit/Hello.xlsx and Arabic-named editor URL both 200 · playwright office_editor_real 3/3 ran (1 helper-skipped, none failed).

## Summary OnlyOffice emits cache URLs with `_` percent-encoded as `%5f`, which broke the previous strip-the-literal-prefix approach and routed requests to `/admin/`. Now uses the decoded `rest` from axum and re-encodes per path segment. ## Changes - Replaced literal-prefix-strip with per-segment urlenc on the decoded `rest` - Added a tiny RFC 3986 unreserved-set urlenc helper (no new dep) ## Test Results Live curl on herodev: `/cell/edit/Hello.xlsx` and Arabic-named editor URL both 200 · playwright office_editor_real 3/3 ran (1 helper-skipped, none failed).
fix(router): re-encode decoded rest segment for 3-segment proxy paths
All checks were successful
Build & Test / check (pull_request) Successful in 1m42s
1e4392ad8e
zaelgohary merged commit f07fa7cdf7 into development 2026-04-28 10:42:53 +00:00
zaelgohary deleted branch development_fix_proxy_path_reencode_on_decoded_rest 2026-04-28 10:42:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_router!68
No description provided.