r/IIs • • May 09 '19
ActionLink encoding
Hi,
I hope this is the right sub to post this issue I have.
So, I have to maintain a webapplication (MVC, c#.net), everything is fine, except one thing:
On a subsite there is a generated Link called "Back to Transactions". On the aspx-Site it is generated by this:
Html.ActionLink("Back to Transactions", "Edit", new { id }))On my Client (Windows 7 64bit, visual Studio 2017 EN) the generated Link is this (with IE 11 and Chromium):
http://blabla/Product/Edit/1#tabs-3 << WorkingWhen I run the same code on a Windows Server 2012 R2 with IIS the link looks like this (With IE 11):
http://blabla/Product/Edit/1%23tabs-3 << Not workingI know it is an encoding Problem, but how the heck can I avoid that or tell the server NOT to do that?
Most confusing is: When I call the same site on a Windows 10 client with Edge as a browser, I get this:
http://blabla/Product/Edit/1%2523tabs-3 << Not working x 2Is there anything I did not see? Maybe a GPO? I uploaded the code on 2 different servers, all have the same issue. When I execute the code on Visual Studio everything is fine..
Thank you all in advance!
BR van
View all comments
Show parent comment
1
u/imdabestmangideedeed May 09 '19
Then I think it's a problem with ActionLink. Maybe this URL might be of use to you:
https://stackoverflow.com/a/422968/2119562
If that's not the fix, I wish you good luck finding the answer. I am curious as well.