Item13431: Eliminate the auto redirect from the change language template.
Priority: Urgent
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component:
Branches: master
The oops message doesn't appear to render the "script" definition:
%<nop>TMPL:DEF{"script"}%<meta http-equiv="refresh" content="0;url=%SCRIPTURL{view}%/%WEB%/%TOPIC%?%QUERYPARAMS{encoding="safe" separator=";"}%" />%TMPL:END%
Not quite sure how this is supposed to be rendered into the page. But it works fine on 1.1.9,
--
GeorgeClark - 24 May 2015
Actually, this behaviour is deprecated because it can be disorienting to some users. See
http://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element I've got a fix that will expand the tag, no idea why it's needed, but probably better to just remove this behaviour.
diff --git a/core/templates/oopslanguagechanged.tmpl b/core/templates/oopslanguagechanged.tmpl
index 2c2ce7f..5f48cfc 100644
--- a/core/templates/oopslanguagechanged.tmpl
+++ b/core/templates/oopslanguagechanged.tmpl
@@ -13,4 +13,4 @@
%TMPL:DEF{"webaction"}% *%MAKETEXT{"Attention"}%* %TMPL:END%
%TMPL:DEF{"message"}%%SESSION_VARIABLE{"LANGUAGE" set="%<nop>URLPARAM{language}%"}%
-%MAKETEXT{"Your language will be changed to [_1] from the next screen. You will be redirected to there right now. If you aren't, ~[~[[_2]~]~[click to proceed~]~]." args="*%SESSION_VARIABLE{LANGUAGE}%*, %SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%"}%%TMPL:END%
\ No newline at end of file
+%MAKETEXT{"Your language will be changed to [_1] from the next screen. You will be redirected to there right now. If you aren't, ~[~[[_2]~]~[click to proceed~]~]." args="*%SESSION_VARIABLE{LANGUAGE}%*, %SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%"}%%TMPL:P{"script"}%%TMPL:END%
--
GeorgeClark - 31 May 2015