WikiCodeList TOC Links to Home Page
While this occurs for things like Categories as well, this bug is visible in the default product by visiting Special:WikiCodeList while Simple URLs are enabled. The TOC links to jump to the BB-Code on the current page instead redirect the user to the site's home page.
Fixed for the next build. In
vault/special_functions_postbit.php, find:
Code:
if ($header_pos >= 0 AND !$anchor_href)
{
$anchor_href = "#$anchor_name";
Replace with:
Code:
if ($header_pos >= 0)
{
if (!$anchor_href)
{
$anchor_href = "#$anchor_name";
}
else if (!$anchor_name)
{
$anchor_name = substr($anchor_href, 1);
}