Repository navigation
Conversation
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
jay23606
marked this pull request as ready for review
November 20, 2026 20:05
Aniketchavan7
left a comment
There was a problem hiding this comment.
Good catch on resolving the share URL via the configured desktop endpoint instead of window.location.origin in Tauri!
One small suggestion for getBlinkoShareUrl:
Instead of string concatenation with getBlinkoEndpoint() + 'share/' + shareEncryptedUrl, passing the path directly into getBlinkoEndpoint:
export function getBlinkoShareUrl(shareEncryptedUrl: string): string {
return getBlinkoEndpoint('/share/' + shareEncryptedUrl);
}getBlinkoEndpoint already uses new URL(path, base).toString(), so passing '/share/' + shareEncryptedUrl avoids potential double-slash or missing-slash issues depending on whether the stored endpoint has a trailing slash.
Signed-off-by: jay23606 <4602056+jay23606@users.noreply.github.com>
jay23606
marked this pull request as draft
November 21, 2026 15:15
jay23606
marked this pull request as ready for review
November 21, 2026 23:14
This branch has not been deployed
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.
Reopening the share dialog from a note card or the right-click menu built the share link from window.location.origin. In the Tauri desktop app that origin is http://tauri.localhost, so the dialog showed a dead link while the original link, created via getBlinkoEndpoint(), still worked.
Changes:
Web behaviour is unchanged, because window.location.origin equals getBlinkoEndpoint() there.
Tests: I ran an inline bun script that imports the new helper and checks the Tauri case (https://desktop-blinko.example/share/abc123) and the web case (https://web.example/share/abc123). Both passed. The new regression test in file-urls.test.ts could not run here: dependencies are not installed and the suite fails on a missing 'jsonwebtoken' import before any test executes.
Tests not run here: bun test server/tests/security/file-urls.test.ts - fails before running any test: Cannot find package 'jsonwebtoken' (dependencies not installed; installing them was not permitted), app TypeScript type-check / frontend build - dependencies not installed in this environment
Fixes #909
🤖 Generated with Claude Code