[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:
authored and GitHub committed 2021-11-09 10:30:07 +02:00
1 parent 097235d7c4
commit 7be31686ca
9 files changed
+34 -12

No files matched your search

+1 -1
View File
@@ -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,