dynamically configure Redirects in Routes? #2576
Labels
needs-author-action
An issue or pull request that requires more info or actions from the author.
Type: Feedback
This issue is general feedback and doesn't represent actionable work.
Some details
Hello, my question is this:
I realize that YARP is meant for proxying, not redirecting, but YARP does provide an elegant dynamic configuration system that is not default to .Net Core's Redirect setup... ie dynamically configuring Redirects in .Net Core is hard 😢
I looked at the YARP route configuration and didn't see any notion of Redirects.
My current application has a table of Redirects that get configured on startup, but they are not dynamic -- ie if they change in the database we have to restart the site.
As a part of a rewrite of our app we're using YARP to proxy some pages to the new site and some to the old.
However, given that my YARP project now effectively provides a nice "pinch point" for all things route(ish), it seems like a good place to also handle general redirects in a more dynamic way.
Is there anything built-in that I'm missing, or can you point me to any examples that I could use to come to a solution for dynamically configurable redirects.
For some background, an example redirect is a feature of the old site that we're deprecating now should be redirected to the homepage.
How many backends are in your application?
How do you host your application?
The text was updated successfully, but these errors were encountered: