Skip to content

Conversation

@ralphjsmit
Copy link
Contributor

@ralphjsmit ralphjsmit commented Dec 30, 2025

When upgrading a Filament V4 project, I encountered a situation where there was a custom page in a resource that had a table on it for a different model. This custom page had a CreateAction on top with a ->model(OtherModel::class) set. However, instead the action now redirected to the create page of the resource, rather than open a modal with the schema.

This PR fixes it by modifying the getDefaultActionUrl() to only return a URL if the $action->getModel() matches the associated resource model.

Thanks!

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Dec 30, 2025
@danharrin danharrin added the bug Something isn't working label Dec 30, 2025
@danharrin danharrin added this to the v4 milestone Dec 30, 2025
@danharrin danharrin merged commit aeecd8d into filamentphp:4.x Dec 30, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants