I'm on the latest master in Github (2018).
I am currently using the work-around below to fix the issue on all my pages, simply by putting this line in my layout.html (which all my views import):
<script>
    path = window.location.pathname;
    $(".web2py_console  ").find('form').attr("action", path);
</script>