release: prepare v0.1.140
Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / test (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled
Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / test (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled
This commit is contained in:
@@ -1218,6 +1218,14 @@ func normalizeCustomMenuItemsRaw(raw string) json.RawMessage {
|
||||
default:
|
||||
item["placement"] = "sidebar"
|
||||
}
|
||||
linkOpenMode, _ := item["link_open_mode"].(string)
|
||||
switch strings.TrimSpace(linkOpenMode) {
|
||||
case "", "internal":
|
||||
item["link_open_mode"] = "internal"
|
||||
case "external":
|
||||
default:
|
||||
item["link_open_mode"] = "internal"
|
||||
}
|
||||
}
|
||||
normalized, err := json.Marshal(items)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user