Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect AT URI from http and html alternate links #190

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

tom-sherman
Copy link
Contributor

@tom-sherman tom-sherman commented Nov 1, 2024

Follows on from #172

If the user pastes a http URL that when fetched includes an alternate at:// uri, we'll navigate to it.

As of the time of opening this PR, this currently works on:

This will soon also work with Bluesky links, the PR is merged but not deployed yet: bluesky-social/social-app#6033

Note

atproto-browser will look at the HTTP headers and HTML document returned from the server for the appropriate link. If you insert the link into the document after the document loads (eg. in a SPA) atproto-browser won't be able to detect it.

Copy link

vercel bot commented Nov 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atproto-browser ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 0:55am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
frontpage ⬜️ Ignored (Inspect) Visit Preview Nov 1, 2024 0:55am
unravel ⬜️ Ignored (Inspect) Visit Preview Nov 1, 2024 0:55am

@tom-sherman tom-sherman merged commit 8c38876 into main Nov 1, 2024
8 checks passed
@tom-sherman tom-sherman deleted the http-at-uri-detection branch November 1, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant