Commit fa34a769 by Dominik Prokop Committed by GitHub

Make Explore panel link work when grafana served from sub url (#22202)

* Make explore url work when grafana served from sub url

* Update public/app/core/utils/explore.ts
parent 565387a4
...@@ -108,8 +108,7 @@ export async function getExploreUrl(args: GetExploreUrlArguments) { ...@@ -108,8 +108,7 @@ export async function getExploreUrl(args: GetExploreUrlArguments) {
const exploreState = JSON.stringify({ ...state, originPanelId: panel.id }); const exploreState = JSON.stringify({ ...state, originPanelId: panel.id });
url = renderUrl('/explore', { left: exploreState }); url = renderUrl('/explore', { left: exploreState });
} }
const finalUrl = config.appSubUrl + url; return url;
return finalUrl;
} }
export function buildQueryTransaction( export function buildQueryTransaction(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment