+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / MVC ActionLink

MVC ActionLink

2 posts, 0 answered
  1. Andrey
    Andrey avatar
    4 posts
    Registered:
    25 Feb 2015
    13 Oct 2015
    Link to this post

    Hi guys. Recently I have faced with interesting problem with MVC widgets. The Url that generated by Html.ActionLink() is incorrect.
     Here is my action in controller 

     

    [HttpGet]
    public ActionResult Delete(string id)
    {
        if (!string.IsNullOrEmpty(id))
        {
            // DELETE ITEM
        }
     
        return this.Index();
    }

     

     And here is my actionLink in View 

     

    @Html.ActionLink("Remove", "Delete", new {id = item.Id}, new { @class = "btn btn-danger", type = "button" })

     

    But as a result I get this link:

    /itefinity/Administration/Synchronization/MySync/Delete/11222/

    And it is incorrect 

    I have to get this link

    /Sitefinity/Administration/Synchronization/MySync/Delete/11222/

     Please help me. I don't know what am I doing wrong. 

    Best regards, Andrew

  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    28 Sep 2016
    16 Oct 2015
    Link to this post
    Hello,

    This is currently a bug in Sitefinity. You can find it here and vote for it to increase its priority.

    Regards,
    Velizar Bishurov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered