Skip to content

Remove language in URL

Thomasfds edited this page Jun 2, 2021 · 4 revisions

French Version

Dans la version 2.1 et supérieur le système d'URL à été réécrit, il inclut dorénavant le langage utilisateur dans l'url par exemple : https://votresite.fr/fr/

Pour retirer ce système vous pouvez suivre ces instructions :

  1. Aller dans le fichier config/routes/annotations.yaml
  2. Supprimer les lignes 4, 5 et 6
  3. Les urls devraient passer de https://votresite.fr/fr/ à https://votresite.fr/
  4. Pensez à modifier l'url dans votre configuration dedipass
  5. Profiter de votre site.

English Version

In version 2.1 and higher, the URL system has been rewritten, it now includes the user language in the url, for example: https://yoursite.com/en/

To remove this system you can follow these instructions:

  1. Go to the config / routes / annotations.yaml file
  2. Delete lines 4, 5 and 6
  3. The urls should go from https://yoursite.com/en/ to https://yoursite.com/
  4. ** Remember to modify the url in your dedipass configuration **
  5. Enjoy your site.

Clone this wiki locally