Fixed XF301VB: Add missing redirect for newthread.php URLs

Steffen

Well-known member
This may not strictly be a bug but can be easily patched. :)

Diff:
--- a/src/addons/XF301VB/Mvc/Router.php
+++ b/src/addons/XF301VB/Mvc/Router.php
@@ -107,11 +120,13 @@ class Router extends XFCP_Router
             case 'printthread.php':
             case 'showpost.php':
             case 'forumdisplay.php':
+            case 'newthread.php':
             case 'member.php':
             case 'attachment.php':
             case 'private.php':
--- a/src/addons/XF301VB/Pub/Controller/Redirect.php
+++ b/src/addons/XF301VB/Pub/Controller/Redirect.php
@@ -30,6 +30,11 @@ class Redirect extends Controller
         return $this->redirectContent($params, 'node', 'XF:Node', 'forums/index.rss');
     }
 
+    public function actionNewthread(ParameterBag $params)
+    {
+        return $this->redirectContent($params, 'node', 'XF:Node', 'forums/post-thread');
+    }
+
     public function actionThread(ParameterBag $params)
     {
         if ($postId = $this->filter('p', 'int'))

Requires XF301VB: Fix for feed redirects.
 
Back
Top Bottom