[Mono-bugs] [Bug 56790][Nor] Changed - RewritePath returns 2 questionmarks when rewriting url's with querystrings

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 14 Apr 2004 15:20:40 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martijn@boland.org.

http://bugzilla.ximian.com/show_bug.cgi?id=56790

--- shadow/56790	2004-04-14 06:00:48.000000000 -0400
+++ shadow/56790.tmp.15250	2004-04-14 15:20:40.000000000 -0400
@@ -79,6 +79,17 @@
 ------
 
 When i go to /form.aspx and click the button, it redirects me to
 /index.aspx?id=1 , which is the action in the form.
 
 I only see 1 question mark in there.
+
+------- Additional Comments From martijn@boland.org  2004-04-14 15:20 -------
+Well indeed, RewritePath worked OK.
+
+It was HttpContext.Current.Request.Url.PathAndQuery that caused the 
+problem. When there is no querystring it still adds a questionmark 
+at the end of the url where the MS version doesn't (so that is a 
+bug). I replaced HttpContext.Current.Request.Url.PathAndQuery with 
+HttpContext.Current.Request.RawUrl and it works fine now.
+
+Next time I'll test a little bit more before submitting.