This project is read-only.


Comment post ReturnUrl is lost and user is redirected to the home page


When saving a comment CommentController.Create()'s returnUrl param is blank (despite the right action url) so after posting the comment the user gets redirected to the home page.

If I remove the [HttpPost, ValidateInput(false)] attributes from CommentController.Create() and try to open it up from the browser by using the url copied from the form it correctly gets the returnUrl. However posting the form still doesn't work.

Very weird...


sebastienros wrote Jun 28, 2013 at 2:30 AM

Fixed in changeset a67792e8a6f0

Piedone wrote Jun 28, 2013 at 10:16 AM

What a fix! :-)

sebastienros wrote Jun 28, 2013 at 6:26 PM

It's a real fix, no kidding, I introduced a new Hidden field in the editor, but it happens to override any previous value so if it's empty it's wrong ...

Piedone wrote Jun 28, 2013 at 8:12 PM

I see. Interesting, this is.

sfmskywalker wrote Mar 28, 2014 at 1:28 AM

Fixed in changeset ba41063f7106cd511690542fb7bbdf7516323501