- πΈπ¦Saudi Arabia abdulaziz zaid Riyadh
Hi Everyone, thank you
I did a new patch to can fix any destination and I Edit the merge request and added the below code on the class
EmailTfaVerifyForm
.if ($this->request->query->get('destination')) { // save the destination in the $form_state to be used on submit. $form_state->set('destination', $this->request->query->get('destination')); //Remove the destination from the query string. $this->request->query->remove('destination'); }
on submit form :
// get the destination from the $form_state. $destination = $form_state->get('destination'); // use the destination from the $form_state if it exists if ($destination) { $url = Url::fromUserInput($destination); } else { $url = Url::fromRoute('<front>'); }
can anyone review the patch?
-
abdulaziz zaid β
authored 9a9c9782 on 1.0.x
Issue #3228424 by mark.labrecque, Ramasamy Sivasankar, Owen Barton,...
-
abdulaziz zaid β
authored 9a9c9782 on 1.0.x
- Status changed to Fixed
over 1 year ago 2:28pm 24 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.