locationUtil variable
locationUtil variable
Signature
locationUtil: {
initialize: (dependencies: LocationUtilDependencies) => void;
stripBaseFromUrl: (urlOrPath: string) => string;
assureBaseUrl: (url: string) => string;
updateSearchParams: (init: string, partial: string) => string;
getTimeRangeUrlParams: () => string | null;
getVariablesUrlParams: (scopedVars?: ScopedVars | undefined) => string | null;
getUrlForPartial: (location: Location<any>, searchParamsToUpdate: Record<string, any>) => string;
processUrl: (url: string) => string;
}
Import
import { locationUtil } from '@grafana/data';