From b4f8bdc42f58ca0af72c9f2d14ed0508c4afba98 Mon Sep 17 00:00:00 2001 From: Russ Fish Date: Thu, 9 Aug 2007 21:33:25 +0000 Subject: [PATCH] Link by xref_tag on redirect if there is one. --- www/kb-manage.php3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/kb-manage.php3 b/www/kb-manage.php3 index 87e4b4920..ec2111711 100644 --- a/www/kb-manage.php3 +++ b/www/kb-manage.php3 @@ -469,7 +469,13 @@ if (isset($idx) && (!isset($action) || $action != "delete")) { # # Okay, redirect the user over to the show page so they can see it. # - header("Location: kb-show.php3?idx=$idx"); + if (isset($xref_tag) && $xref_tag != "") { + header("Location: kb-show.php3?xref_tag=". + str_replace("'", "", $xref_tag)); + } + else { + header("Location: kb-show.php3?idx=$idx"); + } } else { # Redirect to the search page. -- GitLab