cloudterm
cloudterm copied to clipboard
url context path not supported - works only if deployed at root path /
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