mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[GH-ISSUE #1176] [Bug] v0.4.15版本/api/statistics路径会301重定向到/api/statistics/导致反向代理到子路径时出错 #795
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fcwys on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1176
Release Version / 软件版本
v0.4.15
Description / 缺陷描述
/api/statistics路径会301重定向到/api/statistics/导致反向代理到子路径(如 /cert)时出错,导致重定向路径指向xxx.com/api/statistics/而不是xxx.com/cert/api/statistics/,这个在之前版本没有问题,目前只能增加一条单独的替换规则解决这个问题。Steps to reproduce / 复现步骤
1、配置nginx到子路径/cert,
2、访问certimate首页
3、工作流统计接口
/api/statistics/报错不显示建议前端地址调整下:https://github.com/certimate-go/certimate/blob/main/ui/src/api/statistics.ts#L9
Logs / 日志
Miscellaneous / 其他
No response
Contribution / 贡献代码