Fix relative endpoint URL resolution when saving to SPARQL workspace#118
Merged
MathiasVDA merged 5 commits intomainfrom Feb 7, 2026
Merged
Fix relative endpoint URL resolution when saving to SPARQL workspace#118MathiasVDA merged 5 commits intomainfrom
MathiasVDA merged 5 commits intomainfrom
Conversation
…endpoints Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix wrong endpoint for saved query in SPARQL workspace
Fix relative endpoint URL resolution when saving to SPARQL workspace
Feb 4, 2026
* Initial plan * Fix quick describe for tokenized prefixed URIs Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com> * Address code review feedback - use template literals and improved parsing Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Collaborator
|
Good works now properly! |
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.
Relative endpoints (e.g.,
/sparql) were being saved with a statichttp://server/prefix instead of resolving against the current page's protocol and host. Onhttps://example.com/yasgui/, an endpoint configured as/sparqlwould be saved ashttp://server/sparqlrather thanhttps://example.com/sparql.Changes
packages/yasgui/src/urlUtils.ts: AddedresolveEndpointUrl()to convert relative/absolute paths to fully qualified URLs usingwindow.location.protocolandwindow.location.hostpackages/yasgui/src/Tab.ts: Wrap endpoint withresolveEndpointUrl()when saving to SPARQL workspaces:test/unit/url-utils-test.ts: Unit tests covering protocol resolution, port preservation, and absolute/relative path handlingThe fix only affects SPARQL workspace saves; Git workspaces are unchanged.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.