Skip to content

Commit

Permalink
Fix ROOT_PATH in configure-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Sep 24, 2024
1 parent da7600c commit 5930745
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions API/Backend/Config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ let setup = {
});
}
);
console.log(s);
s.app.get(
s.ROOT_PATH + "/configure-beta",
s.ensureGroup(s.permissions.users),
Expand Down
2 changes: 1 addition & 1 deletion configure/src/core/calls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const domain =
window.mmgisglobal.NODE_ENV === "development"
? "http://localhost:8888/"
: window.location.origin + "/";
: window.location.origin + (window.mmgisglobal.ROOT_PATH || "") + "/";

const c = {
missionPath: "Missions/",
Expand Down
7 changes: 3 additions & 4 deletions configure/src/core/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const publicUrl = `${(window.mmgisglobal.ROOT_PATH || "").replace(
/^\/|\/$/g,
""
)}/configure-beta`;
export const publicUrl = `${window.location.pathname
.replace(`configure-beta`, "")
.replace(/^\//g, "")}configure-beta`;

export const endpoints = {};

Expand Down
1 change: 0 additions & 1 deletion configure/src/core/routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const Routings = () => {
<div className="routeMain">
<Routes>
<Route
exact
path={HASH_PATHS.home}
element={
<div className="routeContent">
Expand Down

0 comments on commit 5930745

Please sign in to comment.