---
url: /filament-relation-navigator/v1.6/guide/open-as-page.md
---
# 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. It opens the relation manager's own page, or the
page of its relation group when it has no page of its own. On a group's page
the managers with a page of their own get the action too; on its own page a
manager never links to itself.

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;
}
```

### Its look

A link with an arrow by default. Change it in the config:

```php
'relation_manager_action' => [
    'style' => 'button',        // link, button or icon_button (the label becomes a tooltip)
    'label' => 'Full page',     // text or translation key; null: "Open as page", translated
    'icon' => 'heroicon-m-arrow-top-right-on-square', // any Filament icon, or null
    'icon_position' => 'after', // or before
    'color' => 'gray',
    'size' => null,             // sm, md, lg...
    'new_tab' => false,
],
```

Or change the Filament action itself, for everything else but its URL and
when it shows, which the package sets. Every level gets the action as the
previous one left it:

```php
// A service provider: every relation manager
RelationNavigator::configureRelationPageActionUsing(
    fn (Action $action, RelationManager $relationManager) => $action->outlined()->badge('new'),
);
```

```php
// A resource, or a relation manager: only there
public static function configureRelationPageAction(Action $action): Action
{
    return $action->iconButton()->tooltip('Open the orders on their own page');
}
```

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