Skip to content

Commit

Permalink
Node/home locations should be in lowercase only.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelamud committed Aug 13, 2023
1 parent cb27851 commit 04fb7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/state/home/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default (state: HomeState = initialState, action: WithContext<ClientActio
...state,
connecting: false,
root: {
location: action.payload.location,
location: action.payload.location.toLowerCase(),
page: action.payload.location + "/moera",
api: action.payload.location + "/moera/api",
events: toWsUrl(action.payload.location + "/moera/api/events"),
Expand Down
2 changes: 1 addition & 1 deletion src/state/node/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default (state: NodeState = initialState, action: ClientAction): NodeStat
return state;
}

const location = action.payload.rootLocation;
const location = action.payload.rootLocation.toLowerCase();
const page = location + "/moera";
const api = page + "/api";
const events = toWsUrl(api + "/events");
Expand Down

0 comments on commit 04fb7cf

Please sign in to comment.