lundi 26 juin 2017

Adding locale in url without changing link-to helpers

Is there any way to avoid changing all link-to helpers, all transitionTo and transitionToRoute methods when wrapping all routes in parent lang route.

@route 'lang', path: ':lang', ->
  @route 'index', path: '/'
  @route 'my-route'
  @route 'my-route-1'

  @route 'my-route-3', path: '/', ->
    @route 'my-subroute'
    @route 'my-subroute-1'




Aucun commentaire:

Enregistrer un commentaire