F
Filamentβ€’6mo ago
Gediminas

Can a MenuItem redirect to an external URL?

Hello, I'd like to be able to add a new button to the user menu, which would redirect to an external website. I'm following the docs and adding the button the panel like it's shown:
->userMenuItems([ MenuItem::make() ->label('Test Url') ->url(fn (): string => 'www.test.com', true) ->icon('heroicon-o-cog-6-tooth'), // ... ]);
The button appears, but the problem is that the url is using the project domain and appending the specified url at the end like so: mytestproject.local/www.test.com Can I somehow drop the project domain from the generated url and go straight to www.test.com on button click? Thanks!
Solution:
How about using a protocol? 😐
Jump to solution
1 Reply
Solution
Tim van Heugten
Tim van Heugtenβ€’6mo ago
How about using a protocol? 😐
Want results from more Discord servers?
Add your server