Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved redirect on error #2373

Closed
georgringer opened this issue Mar 26, 2024 · 1 comment
Closed

improved redirect on error #2373

georgringer opened this issue Mar 26, 2024 · 1 comment

Comments

@georgringer
Copy link
Owner

report via email

bin gerade in der News-Konfiguration bei einer 12.4-Installation über das errorHandling = redirectToPage gestolpert. Habe mir dazu den Quellcode angesehen.

In Zeile 67 von news/Classes/Controller/NewsBaseController.php habe ich statt

    $this->redirectToUri($url, 0, (int)$options[2]);

die Weiterleitung mit

    return $this->responseFactory->createResponse((int)$options[2])->withHeader('Location', $url);

eingetragen. Was dann auch wie in den alten Versionen funktioniert hat.

@georgringer
Copy link
Owner Author

fixed with #2470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant