Skip to content

Experimental version of the Language Filter#5110

Closed
smanzi wants to merge 5 commits intojoomla:stagingfrom
smz:LanguageFilter
Closed

Experimental version of the Language Filter#5110
smanzi wants to merge 5 commits intojoomla:stagingfrom
smz:LanguageFilter

Conversation

@smanzi
Copy link
Copy Markdown

@smanzi smanzi commented Nov 15, 2014

This a very preliminary PR (I guess it will not even pass Travis because of some "work in progress" comments in it). It supersedes #5092 that didn't take into account every case.

I think there will be much to discuss about this...

smz added 4 commits November 9, 2014 05:40
…renderModal

An optional argument is added to JHtmlBootstrap::renderModal that allows
to select if the close button ("x") should be displayed or not.
The functionality of the "backdrop" parameter in JHtmlBootstrap::modal
is extended to allow displaying a 'static' (no close on click) backdrop.
@smanzi
Copy link
Copy Markdown
Author

smanzi commented Nov 15, 2014

Sorry: there are some "spurious" commits above this one as I did some mistake in my local repo, but it seems to me that, having reverted the spurious ones, everything should be OK here.

Is there a way to get rid of that garbage I involuntary created? Thanks to whomever will help...

@smanzi smanzi changed the title Language filter: use HTTP 301 status code for redirect instead of 301 Language filter: use HTTP 301 status code for redirect instead of 303 Nov 15, 2014
@smanzi
Copy link
Copy Markdown
Author

smanzi commented Nov 15, 2014

Please, see #5109 as well: they go somehow together...

@jissues-bot jissues-bot changed the title Language filter: use HTTP 301 status code for redirect instead of 303 Language filter: use HTTP 301 status code for redirect instead of 301 Nov 16, 2014
Still a very experimental version of the language filter
The main reason to exists is now trying to get rid of the language
cookies
I reverted the HTTP status code returned in case of redirect to 303
@smanzi smanzi changed the title Language filter: use HTTP 301 status code for redirect instead of 301 Experimental version of the Language Filter Nov 16, 2014
@smanzi
Copy link
Copy Markdown
Author

smanzi commented Nov 16, 2014

Sorry, guys, I have changed everything: the main purpose of this PR is now trying to get rid of the Language Cookies.
This should be tested with the new proposed version of the Language Switcher (#5109)
Used with it I see no reason to use HTTP 301 status codes on redirect

@infograf768
Copy link
Copy Markdown
Member

To get rid of the lang cookies, here is a patch:
#4911 (comment)

BUT it must be clear that getting rid of the language cookie means that it is ALWAYS the default site Language or the Browser settings that will be used when going back to the bare url without language code. That is most of the time unwanted.

@RCheesley
Copy link
Copy Markdown

Could you please provide an overview of what this patch hopes to achieve, what we should see before the patch is applied, and what would show a successful test? It would help enormously for testers who don't know what you're proposing to fix.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5110.

@smanzi
Copy link
Copy Markdown
Author

smanzi commented Nov 16, 2014

@RCheesley
Ruth, as it is now, this PR is just an opprobrium I'm very quickly going to close.
Its only reason to exists was to test #5109 which is "the real thing"

Beside that there is an ongoing discussion if redirects from the language_filter (I.e. redirects for functioning but not canonical URLs) should return an HTTP status code of 303 (as it is now) or 301

@smanzi
Copy link
Copy Markdown
Author

smanzi commented Nov 16, 2014

I'm closing this PR.
Beside being an horrible kludge it is now useless: use #4911 instead and set "Cookie Lifetime" to "None".

@smanzi smanzi closed this Nov 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants