 <p>You could use the <code>Url</code> helper to create the right url using the table routes rules. For sample:</p> <pre><code>window.location = '@Url.Action("RejectDocument", "YourController", new { id = 222, rejectReason = "this is my reject reason" })'; </code></pre>