[Rt-commit] [svn] r1237 - rt/branches/3.0-MAINT/html/Elements
huberth at pallas.eruditorum.org
huberth at pallas.eruditorum.org
Wed Jul 14 08:51:49 EDT 2004
Author: huberth
Date: Wed Jul 14 08:51:48 2004
New Revision: 1237
Modified:
rt/branches/3.0-MAINT/html/Elements/Menu
Log:
RT-Ticket: 5227
RT-Status: resolved
* External links are now allowed in menu tabs. They must be preceded
with an http: or https: prefix, or they will be interpreted as
links relative to $RT::WebPath.
Modified: rt/branches/3.0-MAINT/html/Elements/Menu
==============================================================================
--- rt/branches/3.0-MAINT/html/Elements/Menu (original)
+++ rt/branches/3.0-MAINT/html/Elements/Menu Wed Jul 14 08:51:48 2004
@@ -56,7 +56,7 @@
% } else {
% $sep=0;
% }
-<li style="<%$style%>"><A HREF="<%$RT::WebPath%>/<%$toptabs->{$tab}->{'path'}|n%>" style="font-size: <%$size%>;" class="<%$class%>"
+<li style="<%$style%>"><A HREF="<%($toptabs->{$tab}->{'path'} !~ m/^https?:/i) ? $RT::WebPath."/" : ""%><%$toptabs->{$tab}->{'path'}|n%>" style="font-size: <%$size%>;" class="<%$class%>"
<%($class eq 'currenttopnav') ? "name='focus'" : ""|n %>
<% !$level && "accesskey='".$accesskey++."'" |n%>><% $toptabs->{$tab}->{'title'}%></A>
%# Second-level items
More information about the Rt-commit
mailing list