Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me

TOPIC: Prevent redirect to homepage - Joomla 3.4

Prevent redirect to homepage - Joomla 3.4 21 Mar 2015 09:19 #2010

Hi

I am using Easy Language plugin on my site, in combination with the patch that prevents redirect to the homepage when a user clicks the flag icon. This has been working great, but after upgrade to Joomla 3.4 the language switcher is not working anymore.

It seems to me that the patch file is not compatible with Joomla 3.4? Can this be checked?

Yannick
Last Edit: 02 Aug 2015 17:54 by Yannick Vercammen.
The administrator has disabled public write access.

Prevent redirect to homepage - Joomla 3.4 02 Aug 2015 17:54 #2042

Any feedback on this issue?
The administrator has disabled public write access.

Prevent redirect to homepage - Joomla 3.4 25 Nov 2015 10:50 #2114

  • minista
  • minista's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
i got the same Problem since i use joomla 3.4.5
The administrator has disabled public write access.

Prevent redirect to homepage - Joomla 3.4 05 Jan 2016 15:12 #2132

In the end I modified the file /modules/mod_languages/tmpl/default.php, by adding some str_replace() statement the language tag in the URL is changed by the correct one.
This solution is far from elegant, but it seems to work. If anyone is interested in the code of this hack, send me a PM.
The administrator has disabled public write access.
The following user(s) said Thank You: minista

Prevent redirect to homepage - Joomla 3.4 11 Jan 2016 13:11 #2133

  • minista
  • minista's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
There is no PM-Functionality here, as far as i can see. Could u pls upload your hack here? Im really interested in.

Thank you
The administrator has disabled public write access.

Prevent redirect to homepage - Joomla 3.4 11 Jan 2016 20:42 #2134

After the line
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo JLanguage::getInstance($language->lang_code)->isRtl() ? 'rtl' : 'ltr' ?>">

I added the following code to switch between dutch and english:
<?
 
if($language->lang_code == 'nl-NL')
{
	echo '<a href="'.str_replace('/en/','/nl/',$language->link).'">';
}
else if($language->lang_code == 'en-GB')
{
	echo '<a href="'.str_replace('/nl/','/en/',$language->link).'">';
}
 
?>
 

As I already mentioned, maybe not very elegant but it's functional. I don't know whether this influences search engine indexing of the URL's. Finally, note that the modification might get overridden during a Joomla update.
The administrator has disabled public write access.