This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datalocationUtil

locationUtil variable

locationUtil variable


locationUtil: {
    initialize: (dependencies: LocationUtilDependencies) => void;
    stripBaseFromUrl: (url: string) => string;
    assureBaseUrl: (url: string) => string;
    getTimeRangeUrlParams: () => string | null;
    getVariablesUrlParams: (scopedVars?: ScopedVars | undefined) => string | null;
    processUrl: (url: string) => string;


import { locationUtil } from '@grafana/data';