NinjaForge/Ninjaboard — Issue #10: NB 1.1.5 Stable rev 2352 - Numbers in front of forum title throws error 404 page when SEF is enabled.
Author: stipsan
Created: 2011-12-29 14:31:07+00:00
State: open

Reported by @cquencer:

This only goes when Joomla's default SEO settings are enabled (search friendly urls and mod_rewrite are enabled, add suffix to urls is disabled).
When all available SEO settings are disabled everything is working fine.

When putting (a) number(s) in front of a forum title after clicking the forumlink in the forumview it throws an error 404 page with error message: 404 Forum not found. In case of having a menu item linking to this childforum specifically it does directs to the correct forum but that's because the menu item links to the parentforum regardless if the menu item is set to link to the childforum. When not logged in at the frontend, clicking the forumlink in the forumview got directed to the loginpage, after logging in I got the error 404 page again. At first time when I've noticed this behavior, when clicking the forumlink in the forumview it directed me to the next childforum as ordered in the forum settings, but I couldn't replicate this anymore. It just keeps throwing the error 404 page, regardless if there are other childforums present under the same parentforum.

**How to replicate**

In Global Config > SEO settings > enable "Search Engine Friendly URLs" and "Use Apache mod_rewrite".

Create a new parentforum with a random title.

Create a new childforum with numbers in front of the forumtitle, like so: 1000 reasons to use Ninjaboard.

**Expected Result**

Whith SEF enabled.

Normally you get directed to the correct forum having the "1000 reasons to use Ninjaboard" title.

Also normally it isn't usual to get directed to the loginpage when global permissions are set to "have access" for guests (no overrides in use).

**Actual Result**

With SEF enabled.

When clicking the forumlink with the "1000 reasons to use Ninjaboard" title in the forumview I got directed to an error 404 page with error message: 404 Forum not found.

When not logged in and clicking the forumlink in the forumview, it directed me to the loginpage and after logging in it throws the error 404 page again with error message: 404 Forum not found.