Use window.location without origin
fix(workbench): use window.location without origin (#5332)
Use window.location without originfixuse window location without origin workbench
Committed by jsjoeio
commit message
fix(workbench): use window.location without origin (#5332)
When using `window.location.origin` to create a new URL for loading
web packages, it constructs a URL that is not relative, leading to the
terminal breaking when code-server is served not via the root (i.e. /ide
instead of /).Editor assessment
`fix(workbench): use window.location without origin (#5332)` names the exact API correction and its area, and the body teaches the whole story: using the origin produced a non-relative URL, which broke the terminal specifically when code-server was served from a subpath such as /ide. Symptom, mechanism, and trigger condition are all present in three clean sentences — a reader learns the failure mode without opening the diff. The workbench scope is accurate, fix matches, the subject is imperative and period-free, and footers are clean. An exemplar.