? Success
Not before # 6278

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
2 Mar 2015

This codeblock should actually be run on the process_before stage, since it expects only 2 query elements. If it is run on process_during, the languagefilter plugin already acted and added the language. If this is not executed, the alias menu item does not work correctly.

http://forum.joomla.org/viewtopic.php?f=711&t=875100

avatar Hackwar Hackwar - open - 2 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 2 Mar 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 2 Mar 2015

@Hackwar Travis fail?

There was 1 failure:
1) JRouterSiteTest::testProcessBuildRules with data set #1 ('index.php?Itemid=42&test=true', 0, 'index.php?option=com_test&vie...mid=42')
JRouterSiteTest::testProcessBuildRules:699: value is not expected
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'index.php?Itemid=42&test=true'
+'index.php?option=com_test&view=test&Itemid=42'
/home/travis/build/joomla/joomla-cms/tests/unit/suites/libraries/cms/router/JRouterSiteTest.php:699b

https://travis-ci.org/joomla/joomla-cms/jobs/52708560

avatar Hackwar
Hackwar - comment - 2 Mar 2015

Yes, that is more or less expected. I wrote the unittests after the actual code and since that code was not correct, the unittests are not correct either.

avatar Hackwar
Hackwar - comment - 2 Mar 2015

Or rather, this shows bugs in the old code right now. There is more necessary than moving that part of the code a bit earlier.

avatar zero-24 zero-24 - change - 2 Mar 2015
Category Router / SEF
avatar infograf768
infograf768 - comment - 2 Mar 2015

@test fails here
This creates other issues with the language switcher, SEF OFF.

A Classic menu item alias to the Home Page (Featured view) on top menu gives:
index.php?option=com_content&view=featured&Itemid=153&lang=it (instead of index.php?lang=it)
then when one wants to change language to display the home in another language by clicking on the flag, one gets for FR:
/index.php?lang=fr&Itemid=102&option=com_content

avatar infograf768
infograf768 - comment - 7 Mar 2015

@test
We now have correct full links also through the language switcher, but still not a simple:
index.php?lang=en for the Home page

avatar fontanil
fontanil - comment - 7 Mar 2015

@test
When I apply this patch with patch tester, I get that: "Fatal error: Call to a member function getMode() on a non-object in /home/www/sitestests/multi/plugins/system/languagefilter/languagefilter.php on line 59"

avatar zero-24 zero-24 - alter_testresult - 7 Mar 2015 - infograf768: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 7 Mar 2015 - fontanil: Tested unsuccessfully
avatar infograf768
infograf768 - comment - 8 Mar 2015

@fontanil
Try to also apply #6278

avatar fontanil
fontanil - comment - 8 Mar 2015

@test
Fine! both 6254 and 6278 patches solve language switcher URLs and language in Virtuemart popup.
Thanks!

avatar zero-24 zero-24 - change - 8 Mar 2015
Status Pending Ready to Commit
Rel_Number 0 6278
Relation Type Not before
avatar zero-24 zero-24 - alter_testresult - 8 Mar 2015 - fontanil : Tested successfully
avatar zero-24
zero-24 - comment - 8 Mar 2015

Moving to RTC here and set the relation to #6278


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6254.
avatar infograf768 infograf768 - change - 9 Mar 2015
Labels Added: ?
avatar infograf768 infograf768 - change - 9 Mar 2015
Milestone Added:
avatar wilsonge wilsonge - change - 9 Mar 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-03-09 12:13:48
avatar wilsonge wilsonge - close - 9 Mar 2015
avatar zero-24 zero-24 - close - 9 Mar 2015
avatar wilsonge wilsonge - reference | bb7b378 - 9 Mar 15
avatar wilsonge wilsonge - merge - 9 Mar 2015
avatar wilsonge wilsonge - close - 9 Mar 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?
avatar Hackwar Hackwar - head_ref_deleted - 6 Jan 2016

Add a Comment

Login with GitHub to post a comment