WebSVN links doesn't work

Trying to create Mantis-SVN-WebSVN(v2.3.3) installation. Every link to WebSVN creates unrendered template pages.
In this patch I changed the url's from 'websvn/action.php?path=&repo=' form to 'websvn/repo/path?op=' form
At least for now it works. The only link that works not as expected is 'url_changeset' - it should create the link in form '?op=comp&compare[]=${PATH}@${REV-1}&compare[]=${PATH}@${REV}' - right now it gives link to repository snapshot at specific revision.