Skip to content

Open as page ​

On the view and edit pages, every relation manager that has its own page gets an Open as page action in the header of its table, next to its title and before its own actions. A manager inside a relation group opens the group's page. Turn it off where you need to:

php
// config/filament-relation-navigator.php: everywhere
'relation_manager_link' => false,
php
// On a resource: all its relation managers
public static function hasRelationPageLinks(): bool
{
    return false;
}
php
// On a relation manager (with InteractsWithRelationPage)
protected static bool $hasRelationPageLink = false;

// or, without the trait
public static function hasRelationPageLink(): bool
{
    return false;
}

RelationNavigator::getRelationManagerPageUrl($relationManager) returns the same URL, for a button of your own.

Released under the MIT License.