Enhancing Theia Cloud: Redirecting to Specific Workspace Subfolders #424
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
hi @JanKoehnlein When I execute launchAndRedirect, the returned URL looks like this: However, after clicking the launch button, my application's current URL becomes: It appears that Theia Cloud combines the URL returned by the launch method with the mount path defined in the application configuration. The URL I actually expect to see when clicking the "prj1" label on my custom landing page should be: I've tried to understand how Theia Cloud combines the launch URL with the application definition's mount path. I searched for "mountpath" in the source code but couldn't find the information I needed. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, The Theia Cloud demo application passes The mount path in the app definition is aligned with this and mounts at /home/project. When redirecting to the main Theia URL (which is what launchAndRedirect does), e.g. ws.theia-cloud.io/uuid/, Theia will redirect internally to ws.theia-cloud.io/uuid/#/home/project because of the startup args from the Dockerfile. If you instead open ws.theia-cloud.io/uuid/#/home in the browser directly, that value in the URL ( So in your launcher page, you can just use something like: |
Beta Was this translation helpful? Give feedback.



Hi,
The Theia Cloud demo application passes
/home/projectas a startup argument:https://github.com/eclipse-theia/theia-ide/blob/073927e8ca91a19f65bfd0b71a47f73b04b685a1/browser.Dockerfile#L71
The mount path in the app definition is aligned with this and mounts at /home/project.
When redirecting to the main Theia URL (which is what launchAndRedirect does), e.g. ws.theia-cloud.io/uuid/, Theia will redirect internally to ws.theia-cloud.io/uuid/#/home/project because of the startup args from the Dockerfile.
If you instead open ws.theia-cloud.io/uuid/#/home in the browser directly, that value in the URL (
/home) will override the startup argument, and this project will be opened.So in your la…