[rt-users] Saved search results have wrong URL

Tom Robinson tom.robinson at motec.com.au
Tue Jul 21 00:54:16 EDT 2015


On 21/07/15 08:48, Tom Robinson wrote:
> Hi,
>
> I've just updated from RT 4.0.2 to RT 4.2.11 but have an issue with my saved search results
> generating links with /rt3/ in the path. When I remove the /rt3/ component from the URL manually, I
> can browse to the ticket.
>
> Here's what the search generates for a ticket link:
>
> http://myrt4/rt3/Ticket/Display.html?id=2379
>
> But when I click through I get 'Page not found - The page you requested could not be found - Please
> check the URL and try again.'
>
> If I manually remove the /rt3/ component in the location bar, I can browse to the ticket:
>
> http://myrt4/Ticket/Display.html?id=2379
>
> What is happening to corrupt the ticket URLs?
>
Found it. The query has corrupted/bad hrefs:

'<a href="/rt3/Ticket/Display.html?id=__id__">__id__</a>/TITLE:#',
'<a href="/rt3/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject',

Probably should look more like these:
'<b><a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#',
'<b><a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject',

I've since found a couple of saved queries that exhibit the same behaviour. All queries have a
specific CustomField in the search criteria. I've not found the exact cause of the conflict but it's
not so onerous to recreate these queries.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150721/85641383/attachment.sig>


More information about the rt-users mailing list