Language prefix 2 times in Multilingual site

Events happening in the community are now at Drupal community events on www.drupal.org.
tarun_nagpal's picture

I have a multilingual site. There is a strange problem i am facing.

Whenever i try to access a non permitted page and redirected to access denied page.
Then i log in with the credentials then the page shows double language prefix.

For example :-

www.mysite.com/en/en/content-page

Comments

Check hook_url_outbound_alter

naveenvalecha's picture

Check the modules u r using.It seems that it is happening due to hook_url_outbound_alter and hook_url_inbound_alter Check in your custom modules then look at the contrib modules that r using this.
It seems that any module is adding a language prefix again.

P.S. : Please don't post these types of discussion in Accessiblity group as this is not related to multilingual so posting the post related to its group can get the answers soon :)
Multilingual group : https://groups.drupal.org/internationalization

Thanks for reply

tarun_nagpal's picture

Hi Naveen, Thanks for the reply but i haven't implemented the hook_url_inbound_alter. But what i can guess any contrib module might be adding a language prefix. Do you know the exact settings fro the language prefix.?

P.S : I have removed the Tag (Accessibility Group) in this post.

ON active languages page

naveenvalecha's picture

Language prefixes are in the edit page of your active languages admin/config/regional/language
and language detection methods are there admin/config/regional/language/configure

mayur.pimple's picture

This issue is related to i18n configuration and theme template

India

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: