I have a website you can redirect to another website. But some links redirected with %E2%80%8E. But most sites redirected on the right way.
By debugging is see the following: item.Link gives "www.somesite.com/" and the link redirected "www.somesite.com/%E2%80%8E"
item.Link gives "www.mostsites.com/" and the link redirected "www.mostsites.com/"
What can be the problem? It's a MVC4 website with Razor technology.
<span class="label">@Html.DisplayNameFor(model => model.Organization)</span>
@{
if (item.Link == null || item.Link == "")
{
<span>@Html.DisplayFor(modelItem => item.Organization)</span>
}
else
{
<span><a href="@Html.DisplayFor(modelItem => item.Link)" target="_blank">@Html.DisplayFor(modelItem => item.Organization)</a></span>
}
}
I see as a solution like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)/(.*) index.php?model=$1&view=$2¶meters=$3 [L,NS]
But why do I have to place in my MVC application???