From 50f9208bac7e3e00e99e34b3ba1041cacd4e2ac2 Mon Sep 17 00:00:00 2001 From: Jorge Casatejada Santamarta Date: Mon, 1 May 2023 12:45:10 +0200 Subject: [PATCH] Cambios para deploy + correcion friendMapList Co-Authored-By: uo282936 <113896506+uo282936@users.noreply.github.com> --- webapp/Dockerfile | 3 +-- webapp/src/components/indexView/RegisterProvider.tsx | 4 +++- webapp/src/solid/podsFriends.js | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 72e9351..eeeb88e 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -12,5 +12,4 @@ ENV REACT_APP_API_URI=$API_URI RUN npm run build #Execute npm run prod to run the server -#CMD [ "npm", "run", "prod" ] -CMD ["npm", "start"] +CMD [ "npm", "run", "prod" ] diff --git a/webapp/src/components/indexView/RegisterProvider.tsx b/webapp/src/components/indexView/RegisterProvider.tsx index d86d5f7..321508f 100644 --- a/webapp/src/components/indexView/RegisterProvider.tsx +++ b/webapp/src/components/indexView/RegisterProvider.tsx @@ -10,10 +10,12 @@ interface Props { export const RegisterProvider = ({ handleFocus, handleBlur }: Props) => { const [provider, setProvider] = useState(''); + let redirect = window.location.origin.concat("/home"); + const identification = async function () { await login({ oidcIssuer: provider, - redirectUrl: "http://localhost:3000/home",//Url a la que nos llevara una vez logeado + redirectUrl: redirect,//Url a la que nos llevara una vez logeado clientName: "LoMap_es3c" }); } diff --git a/webapp/src/solid/podsFriends.js b/webapp/src/solid/podsFriends.js index 4adfa22..7a5f027 100644 --- a/webapp/src/solid/podsFriends.js +++ b/webapp/src/solid/podsFriends.js @@ -84,8 +84,8 @@ export async function getFriendsMapsFromPod(friendUrl, session) { try { let res = await getMapsFriendFromPod(session, friendUrl); - - return res; + let aux = res.map(map=>{return decodeURIComponent(map)}); + return aux; } catch (e) { console.error(e);