How to set default view/tab when Sanity Studio loads?

2 replies
Last updated: Feb 14, 2024
Hello !I haven’t been able to track down how I can set the default view when the Studio first loads. Can anyone help?
I have the Mux Plugin installed, and when my studio loads, it loads a view of the videos in the Mux plugin tab. I would rather the studio first loads the view of the (desk) structure. Is there a way to set which tab is the default Studio view?
Thanks in advance!
AI Update

I understand the frustration! Unfortunately, I wasn't able to find explicit documentation about how to control which tool/tab becomes the default view when Studio loads.

First, let me clarify something important: the Mux plugin typically provides a custom input component for video fields in your schema - it doesn't usually add a separate navigation tool/tab to your Studio. If you're seeing a dedicated "Mux plugin tab" as the default view, this might be:

  • A custom tool that was added to your Studio configuration
  • Another plugin (like Vision tool) that's displaying Mux-related content
  • A custom view someone on your team created

What You Can Try

Since there's no documented way to explicitly set a default tool, here are some troubleshooting approaches:

1. Check your plugins array order

While I couldn't find documentation confirming this behavior, it's worth experimenting with the order of plugins in your sanity.config.js:

import { defineConfig } from 'sanity'
import { structureTool } from 'sanity/structure'
import { muxInput } from 'sanity-plugin-mux-input'

export default defineConfig({
  plugins: [
    structureTool(), // Try putting this first
    muxInput(),
    // ... other plugins
  ],
})

2. Check for URL routing

Sometimes the issue is simpler - your browser might be remembering the last tool you visited. Try:

  • Clearing your browser cache and local storage
  • Accessing your Studio at the root URL (e.g., yoursite.com/studio)
  • Bookmarking the structure tool directly (usually at /studio/structure)

3. Look for custom routing configuration

Check your config file for any custom basePath settings or routing configurations that might be directing the Studio to a specific tool on load.

Getting More Help

Since this behavior isn't clearly documented, I'd recommend reaching out to the Sanity Slack community or Sanity support. If you can share your full sanity.config.js file (with sensitive info removed), the community might spot what's causing the Mux view to load by default.

Show original thread
2 replies
I think it's just the order in which you add the plugins on your studio config file.
Thanks so much that did the trick!

Sanity – Build the way you think, not the way your CMS thinks

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.

Was this answer helpful?