<p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p>
-<p><a href="{SCRIPT}?command=show&file={DIR}">Back to {DIR}</a></p>{IF error}
+<p><a href="{SCRIPT}?command=show&file={DIR_URL}">Back to {DIR}</a></p>{IF error}
<p>{ERROR}</p>{ENDIF}
<p><textarea name="filecontent" rows="25" cols="120">{CONTENT}</textarea></p>
-<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile"> Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></p>
+<p><input type="checkbox" name="saveas" id="newfile" value="1"><label for="newfile">Save as new file: {DIR} </label><input type="text" name="newfile" value="" onchange="if(this.form.newfile.value != '') this.form.saveas.checked = true; else this.form.saveas.checked = false;"></p>
<p><input type="submit" value="Save file"> <input type="reset" value="Discard changes"></p>
</form>