1

We're upgrading from MediaWiki 1.13.2 -> 1.15.4. One of the issues we see is that when a page is searched for which in which the page name contains special characters, the page cannot be found.

Specifically, if the page is called A&B (A ampersand B) and I type A in the search field it will (correctly) show me A&B as a search suggest. When I select A&B I will go to a page marked A with this message:

There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page.

The URL will be correct: <fullURL>/A%26B

(This is also seen if I press Random page several times until I come across this.)

Anyone know how this can be solved?

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209

2 Answers2

1

Solved it. Our LocalSettings.php had:

$wgArticlePath = "${wgScriptPath}/$1";

I removed this line which then gave title= in the URL. I resolved this by adding:

$wgUsePathInfo = true;

to LocalSettings.php

The only disadvantage is that /index.php is added to all the URLs. If anyone can solve that I'll gladly vote up! =:-)

1

See the the Short URL article on MediaWiki.org for some details that may help you including a few options for fixing it.

uesp
  • 3,414
  • 1
  • 18
  • 16