By Susanne on Wednesday, 15 May 2013
Posted in General Issues
Replies 6
Likes 0
Views 858
Votes 0
I have a bilingual site that has the main menu pages in both languages, and the blog posts set to "language: All" since they are not translated.

However, when someone tries to direct-link to one of the blog posts (language: All), sometimes the browser/device automatically adds /en/ to the URL, resulting in a 404. For example http://www.digisam.se/index.php/hem/entry/diska-rullar-igang turn into http://www.digisam.se/index.php/hem/entry/diska-rullar-igang turns into http://www.digisam.se/index.php/en/hem/entry/diska-rullar-igang

I thought I had a simple solution to this: in Joomla's LanguageFilter just change "Language Selection for new Visitors" to Site language (I had set it to Browser Settings before). But it didn't work, the /en/ is still added = 404! This happens to visitors whom I suspect have their browsers/devices set to English as default language? Or is the problem to be found somewhere else?

As far as I can see, the difference between the blog posts and the 'normal' pages with a menu item attached is that EasyBlog adds the name of the menu option it is displayed under to the URL (in this case "hem". And there is no such thing as an English 'hem', just a 'home'.)

I set the blog post in question to 'Language: Swedish' but it doesn't show in the URL. So the link still goes to http://www.digisam.se/index.php/hem/entry/diska-rullar-igang
and since the language for the blog post itself isn't shown, then /en/ gets added and the link breaks..

Help! :O
It seemed to work for a while, but now I've upgraded to the latest Joomla version and I can't seem to paste the code into the file correctly. Can you help me (again)?

I have put the login info for the ftp below.
·
Monday, 16 December 2013 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

So sorry for the delay in getting back to you. I have reapplied the codes for you in line 217. Please check it out. Hope this helps.

Thanks!
·
Tuesday, 17 December 2013 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the quick help! It *seems* to be working now, the people who got the error now get the correct page. If it appears again I'll be back here for your excellent help. Thanks again!!
·
Tuesday, 17 December 2013 01:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You are most welcome. Glad that your issue is solved.

Thanks!
·
Tuesday, 17 December 2013 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi! I saw the email about the recommended security update to 3.9.15218. If I update, will I again accidentally overwrite the fix in JOOMLA/plugins/system/languagefilter/languagefilter.php? Or will this be overwritten only when I upgrade Joomla itself?
·
Monday, 27 January 2014 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Susanne,

This will be only overwritten if you upgrade Joomla EasyBlog won't patch Joomla files. Hope this helps.

Thanks!
·
Monday, 27 January 2014 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post