mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-10 19:13:25 +08:00
Fix: handle monitor names with slashes (#4472)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
@@ -390,10 +390,7 @@ export default {
|
||||
},
|
||||
|
||||
group() {
|
||||
if (!this.monitor.pathName.includes("/")) {
|
||||
return "";
|
||||
}
|
||||
return this.monitor.pathName.substr(0, this.monitor.pathName.lastIndexOf("/"));
|
||||
return this.monitor.path.slice(0, -1).join(" / ");
|
||||
},
|
||||
|
||||
pushURL() {
|
||||
|
@@ -1395,6 +1395,7 @@ message HealthCheckResponse {
|
||||
// group monitor fields
|
||||
this.monitor.childrenIDs = undefined;
|
||||
this.monitor.forceInactive = undefined;
|
||||
this.monitor.path = undefined;
|
||||
this.monitor.pathName = undefined;
|
||||
this.monitor.screenshot = undefined;
|
||||
|
||||
|
Reference in New Issue
Block a user