-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
LinkGenerator generate wrong links across areas (2) #31476
Comments
Thanks for contacting us. |
Thanks for adding to the next sprint planning. I'll add some info for the use case.
It allow to write very clean code, and having a framework that behave like so, roundtripping those values across the whole application. Anyway i'm available to help in this feature, even though this code does not really make sense to me, it looks like just an ovverride of a value, not a reason to invalidate the whole ambient value copying process. If indeed we remove that check it works correctly : |
I'm also hitting this using culture/language route patterns Are there any workarounds for this? This is also stopping us migrating to .NET Core 3.0+. |
Hi, |
Hello there :D |
Would be nice to have this fixed for 6.0 as it's been broken for a while now. |
Thanks @Muchiachio would you be so kind to share an example ? |
You can check this commit. |
Hi, |
@danroth27 Until now, there hasn't been any feedback from the team on this issue (only by means of labels). Is there any feedback from the ASP.NET Core team on the topic of these "global" ambient values, which could be used up to 2.1 for multinenancy, active culture, etc.? Related/similar older issues: (Moved from #31602 (comment).) |
@fschmied It's still work we want to do. We just haven't gotten to it yet in our backlog queue. At this point it doesn't look like it's going to make it in for .NET 6 unfortunately. |
Hi @danroth27 that's very unfortunate, it will block ppl from migrating big complex applications from 2.1, we early adopted the framework and than we got stuck due to this issue :( |
@danroth27 Thanks for the info! (If you have a better workaround than the LinkGenerator decorator, I'd be interested in it, too.) |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Any updates on this? Seems that multitenancy is not supported due to the AmbientValues being ignored, more specifically the tenant ambient value. This is a very important feature |
@tapizquent This didn't make it into .NET 6, but we are considering this issue for .NET 7. |
Yes, i can't wait to remove that ugly workaround ! |
Thanks for contacting us. |
Ouch :( This area of problem shifted from Net5, Net6, Net7 not net8... the hopes to see it addressed are not very high. |
Thanks for contacting us. We're moving this issue to the |
Hi @valeriob. We will certainly consider MVC issues as part of our .NET 9 planning. Please note though that we have limited resources, so we have to prioritize which issues to focus on. We follow a triage process to determine which issues in our backlog to prioritize. If there are issues that are important to you, please be sure to put a 👍 reaction on the original post and comment about why the issue is important to you. Or if you'd like to contribute a fix to accelerate getting an issue addressed that's also an option. |
I'm facing the same issue |
Thank you for the contribution! There's a more optimal way of registering the custom implementation, without having to build the service provider:
|
Hi,
i've just tested the scenario described in this old issue on dotnet 5.0 but it still not working.
#20489
I guess that that feature was not included in the 5.0 planning and unfortunately it's blocking the upgrade of a lot of software due to the regression occurred when switching to the new Routing mechanism in dotnetcore 3.0.
What is the solution to allow ambient parameter to flow between areas for dotnet 5.0 and 6.0 ?
Thanks
The text was updated successfully, but these errors were encountered: