User tests: Successful: Unsuccessful:
Joomla! Issue Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33722&start=0
When creating redirects, usually non-SEF links are saved as they are universal (alias can be changed later; when SEF is switched off links are still valid) and easier to find (for instance by using JCE Editor to find links to articles). The problem with that is that on SEF site, non-SEF links are explored and displayed by search engines.
Here is a solution, how to detect non-SEF links and convert them to SEF ones.
It's not very clear. In your example (link #1), the language code is used 2 times. However,
http://www.example.org/index.php/ua/ is for SEF enabled,
http://www.example.org/index.php?lang=ua when SEF disabled
When you keep an article open with non-SEF URL, change the site setting by putting SEF=on, refresh the page, really the article's URL appears to have to language strings as in your link #2.
BUT in case of SEF enabled, new redirect link should still look like non-SEF (no first /en/):
http://www.example.org/index.php?option=com_content&view=article&id=10&Itemid=266&lang=en
In this case everything is Ok.
Closed as per the comment on the tracker
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-08-08 14:47:59 |
Title |
|
@grayz7z Cool one but i have find a issue :)
With the language filter plugin enabled and this redirection:
source:
http://www.example.org/index.php/en/?option=com_content&view=article&id=10000000&Itemid=266&lang=en
destination:
http://www.example.org/index.php/en/?option=com_content&view=article&id=10&Itemid=266&lang=en
After the change Joomla send a 404 error.
As the result is: http://www.example.org/index.php/en/en/content-component
see the double "/en"