Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required parameter for [Route: filament.pages.companies/{company}] [URI: companies/{company}] [Missing parameter: company]. #17

Open
mahavishnup opened this issue Apr 30, 2023 · 1 comment

Comments

@mahavishnup
Copy link

Path: src/Actions/RegisterPages.php

$url = $page::getUrl();

replace to

if (in_array($page, ['Wallo\FilamentCompanies\Pages\Companies\CompanySettings'], true) && FilamentCompanies::hasCompanyFeatures()) { $url = $page::getUrl([Auth::user()?->currentCompany]); } else { $url = $page::getUrl(); }

@grafst
Copy link

grafst commented Jul 6, 2023

but what happens if someone doesn't use FilamentCompanies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants