Takes two parameters, Title, Path


After processing a POST request from a form submission that creates one or more new database records, or updates an existing record, it is a good idea to use the HtmlHistory command to tell the browser that the current page is now the page the user would use to view or edit the new item(s), or to safely refresh a current view without resubmitting an update.


Title, Path
[""], Path
[""], [Req.PathWithParams]

Note that at this time all current browsers ignore the Title, so it is here just for future use. If Path is left blank, or no parameters are specified at all, the current full path including URL parameters will be used. The later is useful for simply changing a POST to a GET for the same item you are editing.

This procedure works by adding JavaScript to access the browser's History API. This works in modern versions of Chrome, Firefox, Edge, and in IE10+. Earlier versions of IE will have an error show in the developer tools console, but will not have any other side effects beyond the lack of behaviour change on refresh.

The following JavaScript is what is output by this command:

var MoxHtmlHistory = [];
window.history.pushState(MoxHtmlHistory, pTitle, pPath);