The "redirects" config allows configuring redirects from paths to routes#45985
The "redirects" config allows configuring redirects from paths to routes#45985thlehmann-ionos wants to merge 1 commit intonextcloud:stable29from
Conversation
---
POC: Tests will be added once this proposal is accepted
---
The "redirects" config allows configuring redirects from paths to routes.
Example config:
"redirects" => { "^/path/regexp" => "an.apps.controller.route.locator" }
Use case:
* An administrator can configure another app as target for certain paths.
Differentiation from Apache redirects:
* this allows configuring redirects in one place and avoids spreading
the configuration in multiple places.
* the target route locator is more expressive/easier to trace than a
path
Signed-off-by: Thomas Lehmann <t.lehmann@strato.de>
42bd04f to
aa3d392
Compare
|
This has quite some potential for misconfiguration that will break the UX (app removes/renames it's route/controller/method, typo in the origin/target, looping to the same page, …) |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
29 is now EOL |
Summary
The "redirects" config allows configuring redirects from paths to routes.
Example config
Use case
Differentiation from Apache redirects
the configuration in multiple places.
path
TODO
Checklist
Screenshots before/after for front-end changes(not applicable)