mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Badges on the status page should default their suffix based on the requested duration #4754
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#4754
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 @alametti on GitHub (Feb 26, 2026).
📑 I have found these related issues/pull requests
Relates to #2808, which was created before v2.0.0 and the badge endpoint rework so is no longer relevant.
🛡️ Security Policy
📝 Description
The
/api/badge/:monitor/uptime/:durationaccepts a duration such as1ybut the generated badge says1h, as thehsuffix appears to be hard-coded.👟 Reproduction steps
https://up.metti.ca/api/badge/8/uptime/1y👀 Expected behavior
Badge should read:
(1y)😓 Actual Behavior
Badge reads:
(1h)🐻 Uptime-Kuma Version
2.1.3
💻 Operating System and Arch
Amazon Linux 2023.10.20260202 x86_64
🌐 Browser
Mozilla/5.0 (X11; Linux x86_64; rv:148.0) Gecko/20100101 Firefox/148.0
🖥️ Deployment Environment
25.0.142.38.221📝 Relevant log output
@CommanderStorm commented on GitHub (Feb 26, 2026):
Please refer to the docs, that is how it currently works, not a bug.
You can change the suffix though..
https://github.com/louislam/uptime-kuma/wiki/Badge#ping-uptime-avg-response-and-response-badge
Likely the default should be different though.