locationUtil variable

locationUtil variable

Signature

  1. locationUtil: {
  2. initialize: (dependencies: LocationUtilDependencies) => void;
  3. stripBaseFromUrl: (urlOrPath: string) => string;
  4. assureBaseUrl: (url: string) => string;
  5. updateSearchParams: (init: string, partial: string) => string;
  6. getTimeRangeUrlParams: () => string | null;
  7. getVariablesUrlParams: (scopedVars?: ScopedVars) => string | null;
  8. getUrlForPartial: (location: Location<any>, searchParamsToUpdate: Record<string, any>) => string;
  9. processUrl: (url: string) => string;
  10. }

Import

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