Skip to content

[Bug]: terminal not working when your web base_path is not / #5321

Closed
@acmol

Description

@acmol

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows, Ubuntu
  • Remote OS: Ubuntu
  • Remote Architecture: x86
  • code-server --version: 4.5.0 02b9d7e with Code 1.68.1

Steps to Reproduce

  1. use k8s ingress, set code server base path to /ide/
  2. open ${your-code-server-host}/ide/
  3. ctrl + J open terminal

Expected

show terminal

Actual

No terminal created.

open chrome dev Terminal, you will see some errors like this:

    
    Failed to load resource: the server responded with a status of 503 (Service Unavailable)
    /stable-30d9c6cd9483b2cc586687151bcbcd635f373630/static/out/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js:1

but the root path of ide is /ide/ , not /

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

If your root path is /, terminal will open correctly.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghigh-priorityThis issue needs to be resolved ASAP

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions