<%ARGS>
$ARGSRef
</%ARGS>
<%INIT>
my $ShowHistory = RT->Config->Get("ShowHistory", $session{'CurrentUser'});
if ($ShowHistory eq "scroll") {
    # if scrolling history the paths assume you are on Ticket/Display.html
    # eg AttachmentPath is set to Attachment instead of the full path
    # this means the paths do not work for the search preview
    # fix the paths to be full paths so they work
    if ( $ARGSRef->{AttachmentPath} ne ( RT->Config->Get('WebPath') . '/Ticket/Attachment' ) ) {
        $ARGSRef->{AttachmentPath} = RT->Config->Get('WebPath') . '/Ticket/Attachment';
    }
    if ( $ARGSRef->{ForwardPath} ne ( RT->Config->Get('WebPath') . '/Ticket/Forward.html' ) ) {
        $ARGSRef->{ForwardPath} = RT->Config->Get('WebPath') . '/Ticket/Forward.html';
    }
    if ( $ARGSRef->{UpdatePath} ne ( RT->Config->Get('WebPath') . '/Ticket/Update.html' ) ) {
        $ARGSRef->{UpdatePath} = RT->Config->Get('WebPath') . '/Ticket/Update.html';
    }
}
</%INIT>
