mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #10197, fix relative path urls for dashboard pages
This commit is contained in:
@@ -182,7 +182,8 @@ define('admin/modules/dashboard-line-graph', ['Chart', 'translator', 'benchpress
|
||||
count: amount,
|
||||
});
|
||||
apiEl.attr('href', `${config.relative_path}/api/v3/admin/analytics/${ajaxify.data.set}?${newHref}`);
|
||||
ajaxify.updateHistory(`${ajaxify.data.url.slice(1)}?${newHref}`, true);
|
||||
const url = ajaxify.removeRelativePath(ajaxify.data.url.slice(1));
|
||||
ajaxify.updateHistory(`${url}?${newHref}`, true);
|
||||
hooks.fire('action:admin.dashboard.updateGraph', {
|
||||
graph: Graph._current,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user