Using RedirectToAction in Mvc Controller Widget
I have the following code in one of my Controller methods:
return
RedirectToAction(
"UpdatedProfile"
,
"Home"
);
However, when I execute my code, as soon as I perform the Redirect to navigate from one Controller method to another, I get thrown completely out of the Sitefinity web application!
For some reason, I cannot navigate from one Controller method to another and return different Views respectively as I can in a standard ASP.NET MVC application.
Please advise as to how to resolve this issue while using my Sitefinity MVC Widgets.
Thanks.
Hi Samir,
This is a known issue which we have logged as a bug and hopefully we will be able to include the fix for it in one of our future releases. You can track the bug status on our public feedback portal on the following link.
I have also subscribed you to receive notifications for the bug including new comments, votes, status changes. If you would like to unsubscribe, you can unfollow the item by removing "Following this item”.
I apologize for the inconvenience caused by this issue.
Regards,
Sabrie Nedzhip
Telerik