From 075bbcfa7dd74f40114d9760fbb5b81d41fa2f96 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 21 Dec 2014 04:18:48 +0100 Subject: [PATCH] Disabled 'Default.aspx' stripping - didn't work on Mono - more testing needed --- Site5/Global.asax | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Site5/Global.asax b/Site5/Global.asax index 024afbc4..f1ab6323 100644 --- a/Site5/Global.asax +++ b/Site5/Global.asax @@ -32,13 +32,15 @@ // If we've been called as "/Default.aspx", strip it mercilessly and redirect + /* -- DISABLED -- This didn't work on Mono -- more testing needed + string callUrl = Request.Url.ToString(); if (callUrl.EndsWith("/Default.aspx")) { Response.Redirect(callUrl.Substring(0, callUrl.Length - "/Default.aspx".Length), true); // "true" prevents further processing - } - + } */ + // Testing for page rewrite. string[] rewriteCandidates =