From: reed%reedloden.com <> Date: Fri, 29 Dec 2006 00:48:06 +0000 (+0000) Subject: Bug 276565 - ""Log In" link in footer should return to same page after logging in... X-Git-Tag: bugzilla-2.23.4~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84e36a3d1fea362f08865dd9be817ae16d1da382;p=thirdparty%2Fbugzilla.git Bug 276565 - ""Log In" link in footer should return to same page after logging in." [p=reed r=justdave a=justdave] --- diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index 56de98ce25..dca5d7262e 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -76,7 +76,30 @@
  • | New Account
  • [% END %] [% IF user.authorizer.can_login %] -
  • | Log In
  • + [%# Use the current script name. If an empty name is returned, + # then we are accessing the home page. %] + + [% script_name = cgi.url(Relative => 1) %] + + [% IF cgi.request_method == "POST" OR script_name.match("relogin") %] + [% script_name = "" %] + [% END %] + + [%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] + [% IF Param("sslbase") != "" && Param("ssl") != "never" %] + [% script_name = Param("sslbase") _ script_name %] + [% ELSE %] + [% script_name = Param("urlbase") _ script_name %] + [% END %] + + [% IF cgi.request_method == "GET" AND cgi.query_string %] + [% script_name = script_name _ "?" _ cgi.query_string %] + [% script_name = script_name _ "&GoAheadAndLogIn=1" IF !cgi.query_string.match("GoAheadAndLogIn") %] + [% ELSE %] + [% script_name = script_name _ "?GoAheadAndLogIn=1" %] + [% END %] + +
  • | Log In
  • [% END %] [% END %]