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:
Dario Solera 2009-12-09 16:11:51 +00:00
parent e36df77aa7
commit aab14b7941
3 changed files with 5 additions and 5 deletions

View file

@ -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);
}
}