File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
BlogEngine/BlogEngine.NET
Custom/Widgets/CategoryList Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,14 @@ private static string PageUrl()
184
184
path += "?" ;
185
185
}
186
186
187
+ if ( ! path . Contains ( ".aspx" , StringComparison . OrdinalIgnoreCase ) )
188
+ {
189
+ if ( path . EndsWith ( "?" ) && ! path . EndsWith ( "/?" ) )
190
+ {
191
+ path = path . Replace ( "?" , "/?" ) ;
192
+ }
193
+ }
194
+
187
195
return HttpUtility . HtmlEncode ( path + "page={0}" ) ;
188
196
}
189
197
Original file line number Diff line number Diff line change 4
4
var title = Model .Title ;
5
5
var dic = CategoryList .SortCategories ();
6
6
7
+ var categoryUrl = Utils .RelativeWebRoot + " category" ;
8
+
7
9
var settings = Common .GetSettings (Model .Id );
8
10
bool showRssIcon = true ;
9
11
bool showPostCnt = true ;
36
38
}
37
39
@if (showRssIcon == true )
38
40
{
39
- <a rel =" nofollow" href =" ~/category /feed/@Utils.RemoveIllegalCharacters(cat.Title)" >
41
+ <a rel =" nofollow" href =" @categoryUrl /feed/@Utils.RemoveIllegalCharacters(cat.Title)" >
40
42
<img class =" rssButton" alt =" RSS feed for SubBlog" src =" ~/Content/images/blog/rssButton.png" >
41
43
</a >
42
44
}
43
- <a title =" Category: @cat.Title" href =" ~/category /@Utils.RemoveIllegalCharacters(cat.Title)" >
45
+ <a title =" Category: @cat.Title" href =" @categoryUrl /@Utils.RemoveIllegalCharacters(cat.Title)" >
44
46
@cat.Title
45
47
@if (showPostCnt )
46
48
{
You can’t perform that action at this time.
0 commit comments