Multilingual site, always use language path prefix (no bare URLs) I have a Drupal 8 site with two languages, Japanese (default language) and English.

By default, the default language pages are available at both / and /ja.

For example, /about and /ja/about both go to the Japanese "about" page.

I want to get Drupal to force the path prefix so that the URL is always shown as /ja/about and never just /about.

Interface text language detection settings


URL (path prefix, english: en, Japanese: ja)
Selected language (Japanese)


How can I do this?

For Drupal 7: see this question
Here the steps:


Install Redirect module.
Enable the module /admin/modules
Go to admin page /admin/config/search/redirect/settings.
Ensure Enforce clean and canonical URLs is checked.