Skip to content

T&A 47213: Correctly redirectes when pressing save and return on a question#11188

Open
matheuszych wants to merge 1 commit intoILIAS-eLearning:release_10from
matheuszych:ta/47213
Open

T&A 47213: Correctly redirectes when pressing save and return on a question#11188
matheuszych wants to merge 1 commit intoILIAS-eLearning:release_10from
matheuszych:ta/47213

Conversation

@matheuszych
Copy link
Contributor

https://mantis.ilias.de/view.php?id=47213

Aims to correctly redirect the user when pressing save and return on a question.

While it may not be the most aesthetically pleasing solution, it is currently the only viable one, given the way the call order for this workflow is organized. Were we to directly call $this->ctrl->redirect($gui, $cmd);, we would inadvertently trigger an endless redirection loop. To circumvent this predicament, we append a custom parameter to the URL, effectively marking the subsequent request as a redirect. As a result, any following request will not result in another redirect but will instead be relayed to the GUI class.

@thojou

@kergomard
Copy link
Contributor

Hi @matheuszych

I did not look at the content, but could you please take care to not remove the new lines. This has gotten harder to read.

Best,
@kergomard

@dsstrassner dsstrassner added bugfix php Pull requests that update Php code labels Feb 27, 2026
@matheuszych
Copy link
Contributor Author

Hello @kergomard ,
i adjusted it accordingly.

Best regards
@matheuszych

@matheuszych matheuszych reopened this Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants