Skip to content

Commit

Permalink
Use subpath if needed for COnfigure-beta calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Feb 12, 2025
1 parent 2ae97e8 commit 229a16e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure/src/core/calls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
let domain =
window.mmgisglobal.NODE_ENV === "development"
? "http://localhost:8888/"
: window.mmgisglobal.ROOT_PATH || "";
: window.mmgisglobal.ROOT_PATH ||
`${window.location.pathname
.replace(`/configure-beta`, "")
.replace(/^\//g, "")}`;
if (domain.length > 0 && !domain.endsWith("/")) domain += "/";

const c = {
Expand Down

0 comments on commit 229a16e

Please sign in to comment.