mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: add url property to dashboard meta and search api responses
#7883
This commit is contained in:
@@ -101,6 +101,12 @@ func GetDashboard(c *middleware.Context) Response {
|
||||
meta.FolderTitle = query.Result.Title
|
||||
}
|
||||
|
||||
if dash.IsFolder {
|
||||
meta.Url = m.GetFolderUrl(dash.Uid, dash.Slug)
|
||||
} else {
|
||||
meta.Url = m.GetDashboardUrl(dash.Uid, dash.Slug)
|
||||
}
|
||||
|
||||
// make sure db version is in sync with json model version
|
||||
dash.Data.Set("version", dash.Version)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user