vmui: fix default server path (#2511)

This commit is contained in:
Vitaliy Vasilenko 2022-04-29 12:51:48 +03:00 committed by Aliaksandr Valialkin
parent e6ee235707
commit d7e1971042
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -1,3 +1,3 @@
export const getDefaultServer = (): string => {
return window.location.href.replace(/\/(?:prometheus\/)?(?:graph|vmui)\/.*/, "/prometheus/");
return window.location.href.replace(/\/(?:prometheus\/)?(?:graph|vmui)\/.*/, "/prometheus");
};