aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoni Sawicki <tenox@google.com>2022-08-29 00:24:48 -0700
committerAntoni Sawicki <tenox@google.com>2022-08-29 00:24:48 -0700
commit5af67bf50cff29573aa5710f5d2821795a90b3e5 (patch)
tree51abe9c2932fcd209c8158931adb53d3b9c7cce2
parent09471a94c114c03361091db0ed18bb913bfa62f6 (diff)
downloadwfm-5af67bf50cff29573aa5710f5d2821795a90b3e5.tar.gz
dir storting to use naked dir paths instead of dir=
-rw-r--r--dir.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dir.go b/dir.go
index a1e625f..166f7e1 100644
--- a/dir.go
+++ b/dir.go
@@ -181,13 +181,13 @@ func toolbars(w http.ResponseWriter, uDir, user string, sl []string, i map[strin
w.Write([]byte(`
<TABLE WIDTH="100%" BGCOLOR="#FFFFFF" CELLPADDING="0" CELLSPACING="0" BORDER="0" CLASS="thov"><TR>
<TD NOWRAP ALIGN="left" WIDTH="50%" BGCOLOR="#A0A0A0">
- <A HREF="` + *wfmPfx + `/` + qeDir + `&amp;sort=` + sl[0] + `"><FONT COLOR="#FFFFFF">` + sl[1] + `</FONT></A>
+ <A HREF="` + *wfmPfx + `/` + qeDir + `?sort=` + sl[0] + `"><FONT COLOR="#FFFFFF">` + sl[1] + `</FONT></A>
</TD>
<TD NOWRAP ALIGN="right" BGCOLOR="#A0A0A0">
- <A HREF="` + *wfmPfx + `?dir=` + qeDir + `&amp;sort=` + sl[2] + `"><FONT COLOR="#FFFFFF">` + sl[3] + `</FONT></A>
+ <A HREF="` + *wfmPfx + `/` + qeDir + `?sort=` + sl[2] + `"><FONT COLOR="#FFFFFF">` + sl[3] + `</FONT></A>
</TD>
<TD NOWRAP ALIGN="right" BGCOLOR="#A0A0A0">
- <A HREF="` + *wfmPfx + `?dir=` + qeDir + `&amp;sort=` + sl[4] + `"><FONT COLOR="#FFFFFF">` + sl[5] + `</FONT></A>
+ <A HREF="` + *wfmPfx + `/` + qeDir + `?sort=` + sl[4] + `"><FONT COLOR="#FFFFFF">` + sl[5] + `</FONT></A>
</TD>
<TD NOWRAP ALIGN="right" BGCOLOR="#A0A0A0">
&nbsp;