? Success

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
18 Nov 2014

This is an initial code review of the languagefilter plugin. There are several sins in this plugin and I tried to simplify and improve the code where possible.

Testing instructions are simple:

  1. Set up a full fledged multi-lingual installation of Joomla with lots of different content and associations, etc.
  2. Check the current behavior.
  3. Apply the change
  4. See that the behavior did not change :wink:
avatar Hackwar Hackwar - open - 18 Nov 2014
avatar jissues-bot jissues-bot - change - 18 Nov 2014
Labels Added: ?
avatar smanzi
smanzi - comment - 18 Nov 2014

@Hackwar So far it seems to work nicely!
I noticed that redirect for logging-in users are now through POST and not GET...
With this too I have spurious 303 (I can show you, if you wish), and I tested that on two different PCs (Win 8.1 and Win 7)... Maybe 'cause my code base is 3.3.6 and not staging?

avatar Hackwar
Hackwar - comment - 18 Nov 2014

This code review does not include the changes from #5129 yet.

avatar smanzi
smanzi - comment - 18 Nov 2014

OK, got it: your 303 are those that are now 301 in #5129.
With this PR I never get the double redirection

avatar smanzi
smanzi - comment - 18 Nov 2014

Hannes, when you have time, give a look at #5129 (comment) and tell me if it is just a load of bullshit of mine or if there is any sense in it...

avatar smanzi
smanzi - comment - 18 Nov 2014

Yeah, I know... Travis is a pain in the back... :grinning:

avatar infograf768
infograf768 - comment - 19 Nov 2014

I combined this with #5129 and I looks like working

avatar Hackwar
Hackwar - comment - 19 Nov 2014

Added #5129 to this PR.

avatar infograf768
infograf768 - comment - 19 Nov 2014

OK for me.
@smanzi ?

avatar Hackwar
Hackwar - comment - 19 Nov 2014

Further changes are proposed in #5140

avatar smanzi
smanzi - comment - 19 Nov 2014

@infograf768 Thanks for asking, appreciated!
I would say that I'm not "against" but I'm not totally "pro" either. After all this modification introduces some inconsistency whose nature and mechanism is not yet clear. I agree that a 301 is more correct, but as I said before I also have concerns about having 301 in such sheer amount. This should be test thoroughly "in the field".

I propose to implement the modification but at the same time have an option "Legacy redirect mode" to revert it in case anything "backfires". It should be plain easy: not even an "if" required, just use the option as the last parameter to $app->redirect()

avatar Hackwar
Hackwar - comment - 19 Nov 2014

Sorry, but no. We are not going to introduce another parameter for this. This already will make no really measurable difference for Google. If you are concerned about your search engine ranking, then you have lots of other areas where you can work on. I doubt that the redirect type for this redirect makes more than 0.001% difference for Google. It will make more of a difference for Google that Joomla overall will become faster by an improved languagefilter plugin and that itself is only measurable in 2 digit milliseconds.

avatar smanzi
smanzi - comment - 19 Nov 2014

OK, then let's cross fingers and hope it will not backfire in any way.

avatar smanzi
smanzi - comment - 19 Nov 2014

Of course the best solution would be not having redirects at all, but probably this is not achievable with the current architecture.

avatar infograf768 infograf768 - close - 20 Nov 2014
avatar infograf768 infograf768 - reference | - 20 Nov 14
avatar infograf768 infograf768 - merge - 20 Nov 2014
avatar infograf768 infograf768 - close - 20 Nov 2014
avatar infograf768 infograf768 - change - 20 Nov 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-11-20 07:55:57
avatar infograf768
infograf768 - comment - 20 Nov 2014

Merging and closing #5129

avatar infograf768 infograf768 - reference | - 2 Dec 14
avatar Hackwar Hackwar - head_ref_deleted - 10 Dec 2014
avatar infograf768
infograf768 - comment - 18 Apr 2015

@Hackwar

Please see http://forum.joomla.org/viewtopic.php?f=711&t=882488&p=3292887#p3292887
It seems we may need a "true" added on line 371 (staging)

Add a Comment

Login with GitHub to post a comment