Query Links Bad

I just did a fresh Debian install for RT. I then dumped my database from our
old server then recreated it on the new server. I follow the instructions
for upgrading the database. The problem is when I do a query search the
links for the tickets are pointing to my old server (sorta).

Machine.domain.com/rt3 was were my old install existed it is not
machine.domain.com/rt all of the links in query search have rt3 instead of
rt2. However if I use the quick search those results have the correct