mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DashboardPage: Update pageNav url when folders differ (#68838)
Check if folder is different and update URL
This commit is contained in:
@@ -426,7 +426,7 @@ function updateStatePageNavFromProps(props: Props, state: State): State {
|
||||
let pageNav = state.pageNav;
|
||||
let sectionNav = state.sectionNav;
|
||||
|
||||
if (!pageNav || dashboard.title !== pageNav.text) {
|
||||
if (!pageNav || dashboard.title !== pageNav.text || dashboard.meta.folderUrl !== pageNav.parentItem?.url) {
|
||||
pageNav = {
|
||||
text: dashboard.title,
|
||||
url: locationUtil.getUrlForPartial(props.history.location, {
|
||||
|
||||
Reference in New Issue
Block a user