I’m building a blog engine inside an MVC2 app.
The URL for each post contains the title of the URL. When the title has a question mark, the question mark quite naturally appears in the URL, but when the request arrives at the controller, the question mark has been removed.
Presumably this is some security measure, but in this situation it’s causing a problem.
Can anyone tell me how to work around this?
The format of the URL is
http://www.mydomain.com/posts/title-with-question-mark?/
The question mark marks the beginning of the querystring and is not part of the path.
You need to URL-encode it.