From 29dcd6978739d157544df22326d2f89dbf127905 Mon Sep 17 00:00:00 2001 From: Bertrand Gorge Date: Mon, 27 Jun 2022 19:45:18 +0200 Subject: [PATCH] Fixed issue #63: when linking to a category, needs to prefix with a colon --- includes/Target.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Target.php b/includes/Target.php index 2ba506b..8fa99b5 100644 --- a/includes/Target.php +++ b/includes/Target.php @@ -95,7 +95,11 @@ class Target { } public function getPrefixedTitleText() { - return $this->title->getPrefixedText(); + + if ($this->title->getNamespace() == NS_CATEGORY) + return ':' . $this->title->getPrefixedText(); + else + return $this->title->getPrefixedText(); } /**