vmui: fix default server path (#2511)

This commit is contained in:
Vitaliy Vasilenko 2022-04-29 12:51:48 +03:00 committed by GitHub
parent ed8e88af11
commit da04e9d1de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");
};