© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Troner

My custom filament page is showing the wrong sidebar from different panel

Issue: When i'm on my custom filament page it's showing the wrong sidebar from the AdminPanel even when there is no /admin in the URL.

What i tried: When i use ->default() on the UserPanelProvider instead the AdminPanelProvider it works but causing other errors in my app.
i also removed /resources/views/vendor; upgraded filament and cleared cache.

What i want: it should display the correct sidebar with the current settings below or do i really need to use ->default() on the UserPanelProvider and if yes why?

        // UserPanelProvider
        return $panel
            // ->default()
            ->id('user')
            ->path('')
        // UserPanelProvider
        return $panel
            // ->default()
            ->id('user')
            ->path('')


        // AdminPanelProvider
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
        // AdminPanelProvider
        return $panel
            ->default()
            ->id('admin')
            ->path('admin')
Solution
Oh shit, now i know my mistake 🤦‍♂️, i commented out ->discoverPages and didn't add my page in ->pages([]). It works now, thanks for helping. Also i removed it from web.php
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament Page In the Wrong Panel?
FilamentFFilament / ❓┊help
3y ago
Filament Custom Page always shows admin panel navigation
FilamentFFilament / ❓┊help
3y ago
Custom page messing up sidebar
FilamentFFilament / ❓┊help
2y ago
custom overview page with sidebar
FilamentFFilament / ❓┊help
2y ago