{include file="header.tpl"}
<body>
<div id="frame">
- <form action="javascript:#" onsubmit="setViewMode(document.getElementsByName('format')[0].options[document.getElementsByName('format')[0].selectedIndex].value); return false;">
+ <form action="javascript:#" onsubmit="setViewMode('{$web_path}', document.getElementsByName('format')[0].options[document.getElementsByName('format')[0].selectedIndex].value); return false;">
<select name="format">
<option value="HTML">HTML</option>
<option value="MoinMoin">MoinMoin Wiki</option>