First, check AdminCP > Setup > Navigation > Route Filters, for any filters that exist with an empty find route and disable them. This behavior will definitely occur if there is a filter where [empty] => wiki, but possibly another one is triggering it.
Please make the following edit, which helped me when I had a loop while Friendly URLs were turned off and I visited the wiki route without index.php (and the wiki-route root was different from the forum root). In src/addons/vw/vw/XF/Mvc/Router.php, find:
Code:
public function buildLink($link, $data = null, array $parameters = [])
BEFORE it, add:
Code:
protected function suffixMatchesRoute($suffix, array $route, \XF\Mvc\RouteMatch $match, \XF\Http\Request $request = null)
{
if ($match->getController() == '\vw\vw\Pub\Controller\Wiki\Wiki')
{
$params = $match->getParams();
if (!empty($params['vwResolvedRoute']) AND $params['vwResolvedRoute']->id > 0)
{
return $match;
}
}
return parent::suffixMatchesRoute($suffix, $route, $match, $request);
}
If after this change, your forum index redirects to the wiki index, that tells us that for some reason the router believes the wiki index path has a different root from the forum index path. Check Options > Basic Board Information > Board URL. For your configuration to work correctly, it should be the same value as the Wiki Base URL established in your earlier post.
If all these are correct, I would recommend opening a support ticket so that the problem can be investigated more closely.
Bookmarks