Steffen
Well-known member
I think the forum is an appropriate redirect target because the importer turns announcements into notices.
Diff:
diff --git a/src/addons/XF301VB/Mvc/Router.php b/src/addons/XF301VB/Mvc/Router.php
index c42c5adbd..27917e7e8 100644
--- a/src/addons/XF301VB/Mvc/Router.php
+++ b/src/addons/XF301VB/Mvc/Router.php
@@ -128,6 +128,7 @@ class Router extends \XF\Mvc\Router
case 'printthread.php':
case 'showpost.php':
case 'forumdisplay.php':
+ case 'announcement.php':
case 'member.php':
case 'attachment.php':
case 'private.php':
diff --git a/src/addons/XF301VB/Pub/Controller/Redirect.php b/src/addons/XF301VB/Pub/Controller/Redirect.php
index 21e610e04..456b38f45 100644
--- a/src/addons/XF301VB/Pub/Controller/Redirect.php
+++ b/src/addons/XF301VB/Pub/Controller/Redirect.php
@@ -20,6 +20,11 @@ class Redirect extends Controller
return $this->redirectContent($params, 'node', 'XF:Node', 'forums', $oldId);
}
+ public function actionAnnouncement(ParameterBag $params)
+ {
+ return $this->rerouteController(__CLASS__, 'forum', $params);
+ }
+
public function actionForumFeed(ParameterBag $params)
{
$oldId = $params->forum_id;