Skip to content

Commit

Permalink
remove hardcoded redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Dec 6, 2024
1 parent 8c9e7cb commit 889ad5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Resources/UserResource/Pages/EditProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected function getForms(): array
])->headerActions([
Action::make('Create')
->disabled(fn (Get $get) => $get('description') === null)
->successRedirectUrl(route('filament.admin.auth.profile', ['tab' => '-api-keys-tab']))
->successRedirectUrl(self::getUrl(['tab' => '-api-keys-tab']))
->action(function (Get $get, Action $action, User $user) {
$token = $user->createToken(
$get('description'),
Expand Down

0 comments on commit 889ad5f

Please sign in to comment.