Oct 12, 2018 in Drupal 8, Snippets

When a drupal site has different domains for its language, difficulties can arise when developing locally. With the following snippet, you override your language settings, so prefixes are used instead of domains:

Add the following to your settings.php file:

$config['language.negotiation']['url']['source'] = 'prefix';