Files
galaxy/client/src/app/utils.ts
T
John Chilton e498b86736 Migrate app stuff in util.ts to avoid circular dependencies.
I checked these methods were not used in webhooks or galaxy visualizations.
2025-03-20 10:31:51 -04:00

17 lines
507 B
TypeScript

import { getAppRoot } from "@/onload/loadConfig";
/**
* Get the full URL path of the app
*
* @param path Path to append to the URL path
* @returns Full URL path of the app
*/
export function getFullAppUrl(path: string = ""): string {
const protocol = window.location.protocol;
const hostname = window.location.hostname;
const port = window.location.port ? `:${window.location.port}` : "";
const appRoot = getAppRoot();
return `${protocol}//${hostname}${port}${appRoot}${path}`;
}