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
Hi Ziya,
I am using your excellent tag helper for a search result page, which contains dynamic filters implemented as anchor tags. Now I run into the following issue: when I submit values for a property of type string[] on the anchor element I add the same parameter more than once to the URL, which is interpreted by the ASP.NET model binder correctly. For example countryNames=Togo&countryNames=Lebanon fills the CountryNames string array correctly with [0]Togo and [1]Lebanon. Unfortunately this scenario is not supported by your tag helper and creates an "ArgumentException: An item with the same key has already been added. Key: countryNames". Looking at your code it occurs in the function CreatePagingUrlTemplate as you utilise a Dictionary here. Is there any chance that you can support the described scenario? Your consideration is much appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
You can edit the anchor href attribute using javascript upon page load if you want a quick fix. I did the same in order to change URL from /?p=2&s=10 to /page/2.
Hi Ziya,
I am using your excellent tag helper for a search result page, which contains dynamic filters implemented as anchor tags. Now I run into the following issue: when I submit values for a property of type string[] on the anchor element I add the same parameter more than once to the URL, which is interpreted by the ASP.NET model binder correctly. For example countryNames=Togo&countryNames=Lebanon fills the CountryNames string array correctly with [0]Togo and [1]Lebanon. Unfortunately this scenario is not supported by your tag helper and creates an "ArgumentException: An item with the same key has already been added. Key: countryNames". Looking at your code it occurs in the function CreatePagingUrlTemplate as you utilise a Dictionary here. Is there any chance that you can support the described scenario? Your consideration is much appreciated. Thanks.
The text was updated successfully, but these errors were encountered: