summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xeditcomponents.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/editcomponents.cgi b/editcomponents.cgi
index d9ff666c4..9f7f43f6c 100755
--- a/editcomponents.cgi
+++ b/editcomponents.cgi
@@ -423,7 +423,11 @@ if ($action eq 'new') {
unlink "data/versioncache";
print "OK, done.<p>\n";
- PutTrailer($localtrailer);
+ if ($product) {
+ PutTrailer("<A HREF=\"editcomponents.cgi?product=" . url_quote($product) . "\">edit</A> more components or <A HREF=\"editcomponents.cgi?product=". url_quote($product) . "&action=add\">Add</A> another component");
+ } else {
+ PutTrailer("<A HREF=\"editcomponents.cgi\">edit</A> more components or <A HREF=\"editcomponents.cgi?action=add\">Add</A> another component");
+ }
exit;
}