-
Couldn't load subscription status.
- Fork 124
Open
Description
Currently, the browser-based XOD IDE always opens the tutorial project on launch. There’s no way to tell it to skip the default project and open the specific project right away. Let’s fix it.
This feature would make it possible to create collections of hyperlinks in the traditional web-media pointing to specific projects which then will be automatically opened with XOD IDE.
User story
- I open https://xod.io/ide/?project=https%3A%2F%2Fexample.com%2Fsome-proj.xodball
- The IDE launches skipping the tutorial project
- The project found on https://example.com/some-proj.xodball gets downloaded and opened automatically
- I see all the standard libraries that are loaded normally, with the tutorial project
- All libs that are required by the given project are auto-installed
Effectively, the final effect of such loading is the same as opening IDE normally, then hitting File → Open Project.
Acceptance criteria
- I can use the
projectURL param as shown above - I can provide full URL or a path starting with
/relative to the current domain - If the project failed to download, the default tutorial project is loaded and a persistent snackbar error is shown¹
¹
**Project download failed**
The remote project https://example.com/some-proj.xodball failed to download with HTTP error code 404.
Make sure the URL is valid and the resource admins have correct CORS configuration.Out of scope
- CORS handling. It’s up to admins of the hosting resources to configure CORS properly so that they allow client-side requests from
*.xod.ioor even*.