<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Add_target_attribute_to_Logo</id>
	<title>Add target attribute to Logo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Add_target_attribute_to_Logo"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Add_target_attribute_to_Logo&amp;action=history"/>
	<updated>2026-08-21T23:30:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Add_target_attribute_to_Logo&amp;diff=86&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Add_target_attribute_to_Logo&amp;diff=86&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:13Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Hello everyone, I am new to Request Tracker but I was asked if it was possible to add an attribute the the logo so that when clicked it would target to a new tab instead of the default self. This is possible but you will have to edit RT&amp;#039;s code to add it in. &lt;br /&gt;
&lt;br /&gt;
These instructions are for 4.0.5 or later and I am on Ubuntu 12.04. Anything earlier my not have the same paths.&lt;br /&gt;
==Step 1==&lt;br /&gt;
First open Terminal...&lt;br /&gt;
&lt;br /&gt;
Depending on where you installed RT this path may be different. &amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: RT default installs to opt/rt.&lt;br /&gt;
 cd /var/www/share/html/Elements&lt;br /&gt;
 gedit Logo&lt;br /&gt;
Once Logo is open you need to find the bit of code that says:&lt;br /&gt;
 &amp;lt;a href=&amp;quot;&amp;lt;%ARGS{&amp;#039;LogoLinkURL&amp;#039;}||RT-&amp;gt;Config-&amp;gt;Get(&amp;#039;LogoLinkURL&amp;#039;)%&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
right after you see the &amp;quot;href=&amp;#039;code&amp;#039;&amp;quot; and before the &amp;quot;&amp;gt;&amp;quot; you need to enter this bit of code: &amp;#039;&amp;#039;&amp;#039;NOTE&amp;#039;&amp;#039;&amp;#039;: The name LogoTarget can be changed to somethign else just make sure that you change it everywhere. I just used it because it made the most since to me&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 target=&amp;quot;&amp;lt;%ARGS{&amp;#039;LogoTarget&amp;#039;}||RT-&amp;gt;Config-&amp;gt;Get(&amp;#039;LogoTarget&amp;#039;)%&amp;gt;&lt;br /&gt;
Save and close Logo.&lt;br /&gt;
==Step 2==&lt;br /&gt;
Now you will need to gedit RT_Config.pm(&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;:Changing RT_Config.pm can make RT crash all together and ruin your install of RT. Make sure you make a copy of RT before you make any changes and do not change anything but what this guide has stated.)&lt;br /&gt;
 cd /var/www/etc&lt;br /&gt;
 &lt;br /&gt;
 gedit RT_Config.pm&lt;br /&gt;
For ease do a (Ctrl+f) and type in logo and hit next once. You should be on:&lt;br /&gt;
 =item C&amp;lt;$LogoURL&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 C&amp;lt;$LogoURL&amp;gt; points to the URL of the RT logo displayed in the web UI.&lt;br /&gt;
 This can also be configured via the web UI.&lt;br /&gt;
 &lt;br /&gt;
 =cut&lt;br /&gt;
 &lt;br /&gt;
 Set($LogoURL, RT-&amp;gt;Config-&amp;gt;Get(&amp;#039;WebImagesURL&amp;#039;) . &amp;quot;bpslogo.png&amp;quot;);&lt;br /&gt;
You will need to add this bit of code right after:&lt;br /&gt;
 =item C&amp;lt;$LogoTarget&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 C&amp;lt;$LogoTarget&amp;gt; tells the logo URL where to go when clicked.&lt;br /&gt;
 &lt;br /&gt;
 =cut&lt;br /&gt;
 &lt;br /&gt;
 Set($LogoTarget, &amp;quot;_self&amp;quot;);&lt;br /&gt;
Save and close RT_Config.pm&lt;br /&gt;
==Step 3==&lt;br /&gt;
Stay where you are but open RT_SiteConfig.pm:&lt;br /&gt;
&lt;br /&gt;
gedit RT_SiteConfig.pm and under:&lt;br /&gt;
 Set($rtname, &amp;#039;example.com&amp;#039;); #I would change this to the URL of your website, btw.&lt;br /&gt;
Add on the next line:&lt;br /&gt;
 Set($LogoTarget, &amp;#039;_blank&amp;#039;);&lt;br /&gt;
Save and close RT_SiteConfig.pm&lt;br /&gt;
==Finally==&lt;br /&gt;
Now for these changes to take effect you will need to reset you cached data by:&lt;br /&gt;
 cd /var/www/var/mason_data&lt;br /&gt;
 &lt;br /&gt;
 rm -r &amp;quot;the folder that contains the data&amp;quot;(&amp;quot;&amp;quot; are not needed)&lt;br /&gt;
For example, my folder was called 3583955927.&lt;br /&gt;
&lt;br /&gt;
I would also restart your apache just to be safe with:&lt;br /&gt;
 service apache restart&lt;br /&gt;
and restart your instance of RT.&lt;br /&gt;
&lt;br /&gt;
Your logo should now be sending you to a new tab.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>