My url looks like this:
customer/login?ReturnUrl=home
In the login view, I have used this pattern of code which works fine.
Try @using(Html.BeginForm(null, null, FormMethod.Post, new { data_id="something" }))
@using(Html.BeginForm(null, null, FormMethod.Post, new { data_id="something" }))
It should use the default logic to construct the url, just as if you used BeginForm()
BeginForm()
(never tried that though in such case, but I believe it should work)