So if you want to force the default path prefix in all links. The following trick can do for you. Open the <drupal_root>/includes/language.inc and edit the language_url_rewrite() function as follow.

You have to comment line below as shown

syntax:

case LANGUAGE_NEGOTIATION_PATH_DEFAULT:

//comment line below

/* $default = language_default();
if ($options['language']->language == $default->language) {
break;
}*/
// Intentionally no break here.

Comments

comments

    • Thank you Drupal Developer for your comment. But as I am already retired from Drupal for 2+ years. I would like to hear your suggestion on this. Sorry for the bad hack but may be it was a last resort for me as well.
      Regards,
      Anil

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>