You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this library. I have been using 5.0.4 for some time and it has served us well. I am in the process of updating my app from AutoRoute 5.0.4 to AutoRoute 9.2.1+1. In doing so I discovered that redirects were not behaving as they did in 5.0.4.
It appears that when creating a RouteCollection.fromList, only the last RedirectRoute from the list is persisted. This leads to unexpected redirects and lack of redirects in cases where multiple RedirectRoutes are intended to be used in an AppRouter. It looks like this is because AutoRoutes are added to a map keyed by their name and all RedirectRoutes share the same name.
I will be creating a PR to address this issue shortly. Thank you again.
The text was updated successfully, but these errors were encountered:
First of all, thank you for this library. I have been using 5.0.4 for some time and it has served us well. I am in the process of updating my app from AutoRoute 5.0.4 to AutoRoute 9.2.1+1. In doing so I discovered that redirects were not behaving as they did in 5.0.4.
It appears that when creating a
RouteCollection.fromList
, only the lastRedirectRoute
from the list is persisted. This leads to unexpected redirects and lack of redirects in cases where multipleRedirectRoute
s are intended to be used in an AppRouter. It looks like this is becauseAutoRoute
s are added to a map keyed by their name and allRedirectRoute
s share the same name.I will be creating a PR to address this issue shortly. Thank you again.
The text was updated successfully, but these errors were encountered: