Generate url for dashboard of another panel
Hello, I'm in my 'admin' panel and i want to generate the url for the dashboard on my 'app' panel for an action button.
I've tried...
but this is returning the current (admin) panel object.
I'm getting...
"http://filament3.test/admin" but i'm expecting "http://filament3.test/app"
I thought i had seen this documented somewhere but now i cant find it.
Am i close?
2 Replies
For me,
I solved the problem and I get a full url to the panel using:
Filament::getPanel('app')->getUrl()
retuns null
I solved the problem and I get a full url to the panel using:
url(Filament::getPanel('app')->getPath())
Where are you calling this? Might be too early.