Giter Site home page Giter Site logo

Comments (3)

erichexter avatar erichexter commented on July 1, 2024

the navigation route is just a system.web route. so you would do this the
same way you would with standard mvc route. add the data token in the
routes. /{ln}/home/ ect....

Eric Hexter

blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter

On Mon, Dec 17, 2012 at 5:29 AM, Vladimir [email protected] wrote:

Eric, can you suggest how to use MapNavigationRoute if I want to have
ru/en/es in my route.
Thank you!


Reply to this email directly or view it on GitHubhttps://github.com//issues/36.

from twitter.bootstrap.mvc.

vkocheryzhkin avatar vkocheryzhkin commented on July 1, 2024

Sure, but when you chage culture you need to set this token to all other navigation links(m.b. change Url of NamedRoute). Chage /about to be /ru/about while staing on /ru/home page, right?

from twitter.bootstrap.mvc.

erichexter avatar erichexter commented on July 1, 2024

so you should do something like /{locale}/{controller} in the route.... I current dont have support for tokens with the strongly typed route helpers but the string based ones should support this. as long as you keep the tokens in all of the routes this should work as is.

Another approach is to insert the token into every route after the route table is populated. I actually use this approach for my main work website.

from twitter.bootstrap.mvc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.