Skip to content

Subpath/Relative path redirected to absolute path before logging in #2072

Answered by code-asher
shuchenliu asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is because there's no trailing slash on /code. code-server tries to redirect to a relative path (./login) which with /code ends up being /login.

One solution would be to use nginx to redirect /code to /code/ and then proxy the latter to code-server.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shuchenliu
Comment options

Answer selected by shuchenliu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2072 on September 08, 2020 22:34.