cloudterm icon indicating copy to clipboard operation
cloudterm copied to clipboard

url context path not supported - works only if deployed at root path /

Open andresoviedo opened this issue 1 year ago • 0 comments

hi, thank you. nice piece of work !

i think i found 1 bug on this line (main branch)

let ws = new WebSocket(`${sec?"wss":"ws"}://${location.host}/${terminal`);

this is my patch to work when the app is not deployed at the root path (e.g. /cloudterm/, /cloudtem/terminal)

 let ws = new WebSocket(`${sec?"wss":"ws"}://${location.host}${location.pathname}terminal`);

i think the solution should be something robust to support the context path

regards

andresoviedo avatar Sep 11 '23 13:09 andresoviedo