X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLW-UI.git;a=blobdiff_plain;f=static%2Fsrc%2Futils.js;h=6763f783e5b0a1e992d5cd3ab56504618653d057;hp=83b580c0994ce6c106995ef9baba9fac75c3b05b;hb=4908f382154fddb84d72ce8d516229649c01b606;hpb=c89a4a0390fd7250179e7a3730aa53a6ce2ede68 diff --git a/static/src/utils.js b/static/src/utils.js index 83b580c..6763f78 100644 --- a/static/src/utils.js +++ b/static/src/utils.js @@ -2,8 +2,8 @@ function generateUID() { return ("0000" + (Math.random() * Math.pow(36, 4) << 0).toString(36)).slice(-4) } -function openProject(pId) { - window.location.href = '/projects/' + pId; +function moveToLogin(next) { + window.location.href = (next) ? "/auth/?next="+next : '/auth/'; }