title: Symfony2 - Same route name for two different URL
body: <p>In my Synfony2 wep application, there is two different role that the same user can have. He can whether be an employee or a boss. So, I want to have a switch button the change role so the user have a different view on data. For example, has a Boss the user would see the progress of the work in a project and as a Employee he would see the work to be done from each member of the team in the same project. So basically, the boss would have privilege on some action and the employee on some others. </p>
  
  <p>How should I do the switch between the roles? I was planning to have two different url for each roles <code>/boss/todes</code>and <code>employee/todos</code>. In some case, I would use the same twigs template (e.g. the listing of the todos). How do I do when I need to generate a URL such as <code>/boss/todos/{id}</code> by always specifying the same route_name <code>path('todo_show', {'id': id})</code>. </p>
  
  <p>I think it is pretty similar to the <code>_locale</code> parameter. Is it possible to create a custom parameter similar to <code>_locale</code> in Symfony 2.3?</p>
  
  <p>Thanks in advance !</p>