Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 5c189d8

Browse files
committed
Prepend all links with ./.
1 parent 212c264 commit 5c189d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.AspNet.StaticFiles/HtmlDirectoryFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ header h1 {
119119
{
120120
builder.AppendFormat(@"
121121
<tr class=""directory"">
122-
<td class=""name""><a href=""{0}/"">{0}/</a></td>
122+
<td class=""name""><a href=""./{0}/"">{0}/</a></td>
123123
<td></td>
124124
<td class=""modified"">{1}</td>
125125
</tr>",
@@ -131,7 +131,7 @@ header h1 {
131131
{
132132
builder.AppendFormat(@"
133133
<tr class=""file"">
134-
<td class=""name""><a href=""{0}"">{0}</a></td>
134+
<td class=""name""><a href=""./{0}"">{0}</a></td>
135135
<td class=""length"">{1}</td>
136136
<td class=""modified"">{2}</td>
137137
</tr>",

0 commit comments

Comments
 (0)