Broken link in auto email

After I created a ticket, I changed the owner to someone else. That
person received an email saying that he has been assigned a ticket. That
same email has a direct link to the ticket but the problem is that the
url is wrong.
The wrong url is WebURL:80/rt/rtTicket/Display.html?id=34
The correct url is WebURL:80/rt/Ticket/Display.html?id=34

So I don’t know where it’s getting the rt before Ticket from. I looked
into my templates and all of them use the following link:
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}

I am familiar with Perl so I know that {$RT::WebURL} and {$Ticket->id}
are variables. But I have no idea where it’s getting rtTicket from. I
went into RT_SiteConfig.pm and changed the line
Set($WebURL , $WebBaseURL . $WebPath . “/rt”);
to
Set($WebURL , $WebBaseURL . $WebPath . “/”);
but it still gives me the same wrong url. I also checked the
RT_Config.pm file and made sure that it also makes the correct url. In
the end, I still have the same problem so I’m begining to think that
it’s one of the template scripts that contains the error. Can you help
locate the script that generates the url in the automatic email?

Thanks,
Toly

Did you restart the web browser (and make sure your cache is
cleaned up) after changing the RT_SiteConfig.pm.
Additionally - don’t modify RT_Config, only RT_SiteConfig.On Fri, 8 Jul 2005, Toly Zharkikh wrote:

After I created a ticket, I changed the owner to someone else. That person
received an email saying that he has been assigned a ticket. That same email
has a direct link to the ticket but the problem is that the url is wrong.
The wrong url is WebURL:80/rt/rtTicket/Display.html?id=34
The correct url is WebURL:80/rt/Ticket/Display.html?id=34

So I don’t know where it’s getting the rt before Ticket from. I looked into
my templates and all of them use the following link:
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}

I am familiar with Perl so I know that {$RT::WebURL} and {$Ticket->id} are
variables. But I have no idea where it’s getting rtTicket from. I went into
RT_SiteConfig.pm and changed the line
Set($WebURL , $WebBaseURL . $WebPath . “/rt”);
to
Set($WebURL , $WebBaseURL . $WebPath . “/”);
but it still gives me the same wrong url. I also checked the RT_Config.pm
file and made sure that it also makes the correct url. In the end, I still
have the same problem so I’m begining to think that it’s one of the template
scripts that contains the error. Can you help locate the script that
generates the url in the automatic email?

Thanks,
Toly


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com