-
Hi there, I have created a custom page with
I want to pass an id in the url e.g /admin/finance/123. I have overridden the getSlug method:
When accessing the page with /admin/finance/123 I get:
I have tried adding a route in web.php. I have tried overriding " public static function getRouteName(?string $panel = null): string". No matter what I try it seems impossible to get the page generated without it complaining about the missing parameter id. Please advise. thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there! To avoid getting the error make sure you add:
Because it will try to load the page when it's registered in the navigation with null as the ID. Your code should look like this:
Hope this helps ! 😊 |
Beta Was this translation helpful? Give feedback.
Hi there!
To avoid getting the error make sure you add:
protected static bool $shouldRegisterNavigation = false;
Because it will try to load the page when it's registered in the navigation with null as the ID.
Your code should look like this:
Hope this helps ! 😊