Web: allow SolveSpace HTML build to open a model from URL query param at launch#1721
Open
Copilot wants to merge 3 commits into
Open
Web: allow SolveSpace HTML build to open a model from URL query param at launch#1721Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/solvespace/solvespace/sessions/32574d33-0b68-4ceb-93c8-ffe33c0641bb Co-authored-by: phkahler <14852918+phkahler@users.noreply.github.com>
Agent-Logs-Url: https://github.com/solvespace/solvespace/sessions/32574d33-0b68-4ceb-93c8-ffe33c0641bb Co-authored-by: phkahler <14852918+phkahler@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Allow web version to open files via URL
Web: allow SolveSpace HTML build to open a model from URL query param at launch
May 21, 2026
Member
|
Looking for testers... Can someone check if this actually works? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The web build could only open local/uploaded files after launch, which made forum/shared
.slvslinks cumbersome to inspect. This change adds launch-time URL ingestion so the app can start directly with a remote file.Startup URL parameter handling
src/platform/guihtml.cppnow readswindow.location.searchforurlorfile.Platform::InitGui(...), so it plugs into the existing startup file-open path (no new load flow).Remote file staging into Emscripten FS
emscripten_fetch./data/<filename>and that path is appended to startup args, allowing normalSS.Load(...)behavior.Path/filename hardening and portability
./..and path separators).PRIu64, safe type comparison).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
gitlab.com/usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either: