© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
rabol

Filament::getPanel('dashboard')->getUrl() returns the wrong url

I have a laravel app, based on JetStream, I have two panels, Admin and Dashboard

in my
resources/navigation-menu.blade.php
resources/navigation-menu.blade.php
I have this:

<!-- Logo -->
<div class="shrink-0 flex items-center">
    <a href="{{ Filament::getPanel('dashboard')->getUrl()  }}">
      <x-application-mark class="block h-9 w-auto"/>
    </a>
</div>
<!-- Logo -->
<div class="shrink-0 flex items-center">
    <a href="{{ Filament::getPanel('dashboard')->getUrl()  }}">
      <x-application-mark class="block h-9 w-auto"/>
    </a>
</div>


but.... the url is mysite.test/admin and not mysite.test/dashboard


if I then create a simple view like this:

@php
    use Filament\Facades\Filament;
@endphp

<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
            {{ __('Simple') }}
        </h2>
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-xl sm:rounded-lg">
                <a href="{{ Filament::getPanel('dashboard')->getUrl() }}">dashboard</a>
            </div>
        </div>
    </div>
</x-app-layout>
@php
    use Filament\Facades\Filament;
@endphp

<x-app-layout>
    <x-slot name="header">
        <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
            {{ __('Simple') }}
        </h2>
    </x-slot>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
            <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-xl sm:rounded-lg">
                <a href="{{ Filament::getPanel('dashboard')->getUrl() }}">dashboard</a>
            </div>
        </div>
    </div>
</x-app-layout>

the url is ok in the view but not in the menu
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::getPanel('user')->getUrl(); - Potential Bug?
FilamentFFilament / ❓┊help
2y ago
Testing resources with Pest by getUrl() always returns 302
FilamentFFilament / ❓┊help
3y ago
Resource::getUrl(panel: 'server') still uses the wrong panel in spaUrlExceptions()
FilamentFFilament / ❓┊help
13mo ago
Filament Page In the Wrong Panel?
FilamentFFilament / ❓┊help
3y ago