Skip to content

Commit 9a66fec

Browse files
Fix redirection to canonical issue and preventing API calls (#1030)
1 parent c140ee3 commit 9a66fec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/apigee_edge_teams/src/Entity/Form/TeamForm.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ public function save(array $form, FormStateInterface $form_state) {
306306
}
307307

308308
}
309+
$options = [];
310+
$query = $this->getRequest()->query;
311+
if ($query->has('destination')) {
312+
$options['query']['destination'] = $query->get('destination');
313+
$query->remove('destination');
314+
}
309315
// Redirecting user to team view page to manage the team members and apps.
310316
$form_state->setRedirectUrl($team->toUrl('canonical'));
311317

0 commit comments

Comments
 (0)