But when the URL is passed in parameter to JS function, that does something and then redirects to that URL it will generate the URL wrong -> it generates '/controller/index?TK=4'. It is missing the '/folder/' at the start.
$('#View').on('change', function () { window.location = '@Url.Action("Index")?TK=4';});
$('#View').on('change', function () { window.location = '@Url.Action("Index")?TK=4';});
So: 1) How can I generate it properly in JS ? 2) And what can be wrong with it ?
Note: All these pieces of code works well localy and on test (generates the URL with '/folder/'), but it doesn't work on production (doesnt generate '/folder/'), even though there is the same code. So the mistake might be in configuration ?