Skip to content

[Feature Request] Accept session ID in server URL #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
msujew opened this issue Mar 27, 2025 · 2 comments
Open

[Feature Request] Accept session ID in server URL #104

msujew opened this issue Mar 27, 2025 · 2 comments

Comments

@msujew
Copy link
Contributor

msujew commented Mar 27, 2025

With #92, users can specify a specific server to use for the collaboration session by prefixing the session ID with the URL and a #. It would be good to offer a page in the server that allows to redirect to an IDE using that session ID if the user accidentally pastes the URL in the browser.

@spoenemann
Copy link
Contributor

spoenemann commented Mar 28, 2025

This would require a GET handler for /, right? It would be good to have one anyway – if no fragment is given, it should redirect to a URL previously configured for the server (for our public instance, that would be www.open-collab.tools), or alternatively return some infos about the server in JSON format.

But how do we know to which IDE to redirect with a room ID?

@msujew
Copy link
Contributor Author

msujew commented Mar 28, 2025

This would require a GET handler for /, right?

Yes

But how do we know to which IDE to redirect with a room ID?

We could offer a page that offers multiple redirects:

  1. To playground/online IDE
  2. VS Code
  3. IntelliJ?

The server might actually not host this page directly, but redirect to a specific page of the www page, but retaining the #<sessionId> fragment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants