
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is definitely not a stupid question - what you're describing sounds incredibly frustrating, and I want to help you get to the bottom of it!
First, let me be upfront: the specific issue you're experiencing (popover closing when clicking inside the URL field, flickering edit icon) isn't something I can find documented as a known issue in Sanity's official documentation. However, the symptoms you're describing - especially the third-party cookie warnings and websocket errors - point to some likely culprits.
The fact that you're seeing third-party cookie warnings and websocket closing before handshake errors is significant. These suggest that something in your browser environment is interfering with how Sanity Studio communicates with Sanity's backend services. The Studio needs to maintain connections to Sanity's APIs for real-time features and authentication, and restrictive browser settings can break these connections in unexpected ways.
The popover closing immediately when you try to interact with it could be a symptom of these connection issues causing focus/state management problems in the Studio UI.
1. Browser Privacy Settings
Since you mentioned third-party cookies specifically, start here:
sanity.io domains2. Browser Extensions
Ad blockers and privacy extensions can interfere with Studio functionality:
3. Network Environment
The websocket errors suggest potential network-level blocking:
4. Keyboard Navigation Workaround
While troubleshooting, try this alternative approach:
This sometimes bypasses focus management issues that clicking triggers.
5. Update Sanity Studio
Make sure you're running the latest version:
npm update sanityIf you're on Studio v4, ensure you're using Node.js 20+ as that's a requirement.
6. Clear Cache and Restart
Sometimes corrupted browser state causes UI issues:
npm run dev)Since you mentioned that portable text rendering works correctly in your Next.js app, your schema configuration is almost certainly correct. The Block Content structure you've set up is working - this is purely a Studio UI interaction issue, not a configuration problem.
If you've tried all the above without success:
Check browser console - Open your browser's developer tools (F12) and look at the Console and Network tabs when you try to add a link. Share any error messages you see.
Try the production Studio - If you're developing locally, try accessing your Studio through yourproject.sanity.studio to see if the issue persists in the hosted environment.
Report it - Search Sanity's GitHub issues to see if others have reported similar behavior, or post in the Sanity Slack community with:
npm list sanity)The fact that it eventually worked on mobile Chrome (even if painfully) strongly suggests this is a browser-specific issue rather than a fundamental problem with your setup. You're not an idiot - you've actually done great troubleshooting by testing across multiple browsers and finding a workaround!
Start with the browser privacy settings and extension checks - those are the most common causes of the symptoms you're describing. Good luck, and I hope you get it sorted!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store