[v8.1.x] Navbar: Add sanitize validation to urls (#41311)
* Navbar: Add sanitize validation to urls * NavBar: Change help link from '#' to '/' * global replace * Fix tests Co-authored-by: Alexandra Vargas <alexa1866@gmail.com> Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com> Co-authored-by: Dan Cech <dcech@grafana.com>
This commit is contained in:
9 files changed
+34
-12
No files matched your search
+1
-1
@@ -344,7 +344,7 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool) ([]*dto
|
||||
Text: "Help",
|
||||
SubTitle: helpVersion,
|
||||
Id: "help",
|
||||
Url: "#",
|
||||
Url: "/",
|
||||
Icon: "question-circle",
|
||||
HideFromMenu: true,
|
||||
SortWeight: dtos.WeightHelp,
|
||||
|
||||
Reference in new issue
Block a user