I ran into this problem when I transferred a project from a development system to a live server. Although I initially thought that Html.BeginForm () was a bit larger than the macro for creating the form tag, it turns out that using it is a solution - it internally adjusted relative paths.
source share