Skip to content

Commit

Permalink
Fix redirection to canonical issue and preventing API calls (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Feb 12, 2024
1 parent c140ee3 commit 9a66fec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/apigee_edge_teams/src/Entity/Form/TeamForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ public function save(array $form, FormStateInterface $form_state) {
}

}
$options = [];
$query = $this->getRequest()->query;
if ($query->has('destination')) {
$options['query']['destination'] = $query->get('destination');
$query->remove('destination');
}
// Redirecting user to team view page to manage the team members and apps.
$form_state->setRedirectUrl($team->toUrl('canonical'));

Expand Down

0 comments on commit 9a66fec

Please sign in to comment.