Fixed issue in redirection to a page with a space in the name, saved in a namespace with a space in the name.
This commit is contained in:
parent
e36df77aa7
commit
aab14b7941
3 changed files with 5 additions and 5 deletions
|
@ -19,7 +19,7 @@ namespace ScrewTurn.Wiki {
|
|||
protected void Page_Load(object sender, EventArgs e) {
|
||||
List<PageInfo> pages = Pages.GetPages(Tools.DetectCurrentNamespaceInfo());
|
||||
Random r = new Random();
|
||||
UrlTools.Redirect(UrlTools.BuildUrl(pages[r.Next(0, pages.Count)].FullName, Settings.PageExtension));
|
||||
UrlTools.Redirect(pages[r.Next(0, pages.Count)].FullName + Settings.PageExtension);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue