ActionLink from plugin always redirects to host application Views causing error

Apr 30, 2013 at 2:05 PM
Hi
Standard @Html.ActionLink in plugin project try to call actions and views on host application and not as it should on current called plugin. Is there any workaround??
Coordinator
May 7, 2013 at 3:16 AM
Hi,
I will check this issue later, thanks for your feedback.

Joey
Coordinator
May 14, 2013 at 7:59 AM
Hi,
The standard @Html.ActionLink in plugin project works now since version 1.2.0.0, please download the new version and checkout.
I added a demo in MediaPlugin PopularTVShow\Index.cshtml, the code looks like this,
@foreach (var movie in Model)
    {
        <tr>
            <td><a href="#">@movie.Name</a></td>
            <td>@movie.Rating</td>
            <td> @Html.ActionLink("Delete", "Delete", new { plugin="MediaPlugin", id=movie.Id})</td>
        </tr>
    }
The only thing is you need to specify the plugin name in the ActionLink parameter, this way, it tells the plugin framework which plugin this controller based in.

Joey