MVC Routing question

  • Thread starter Thread starter Matthias S.
  • Start date Start date
M

Matthias S.

Hi there,

I'm going to develop my first application (blog type of thing) using
MVC. Now I have a question about routing. I'd like to implement a
globalization pattern like this:

http://mydomain/en/about (for the english about page)
and
http://mydomain/de/about (for the german about page)

The language code (in the above case 'en' or 'de') should be persisted
to a cookie. Whenever a page is called which doesn't have the language
portion in the URL, I want to lookup the value in the cookie. If there
is no cookie, I'd like to lookup the language supported by the browser
and rebuild the url. After that, I'd write the cookie.

How would I set up routing for a scenario like this?

Thanks in advance!

Matthias
--
 
Hi Bruce,

thanks for your reply. I've been googeling but recources on how to
provide a custom MvcRouteHandler seem to be pretty little around. Could
you recommend some further reading?

Thanks again,

Matthias
 
Back
Top