Topic on Project:Support desk

Short URL setup leaves some index.php links behind

13
Bolaja (talkcontribs)

Hello,

I'm running 1.22.6 (on Apache) and I've set up pretty/short URLs as per the instructions found in Manual:Short URL. I have also set up pretty URLs for actions (edit, view history, etc.) using $wgActionPaths.

This works fine, but there are still a few links referencing index.php:

That's all I could find for now, there's probably even more.

Is there any way to change these remaining links to pretty URLs as well?

Thanks.

88.130.83.231 (talkcontribs)

Where are these links? I e.g. know that the login page is referenced in a number of system messages. For my installs I fixed that by adding according RewriteRules, which also rewrite the URLs with index.php in them.

Bolaja (talkcontribs)

Those were all links that can be found on any MediaWiki page, basically.

By default, the login and logout links are at the top right of the page, the printable version and permalink links are in the side pane on the left and the search (technically a form, not a link) can also be found at the top right.

RewriteRules have nothing to do with this, after all they cannot change the links that MediaWiki produces.

121.219.74.235 (talkcontribs)
Bolaja (talkcontribs)

The examples in that article (action URIs) can already be changed by adjusting $wgActionPaths, though. So to me it is confusing why a handful of links would be left "hardcoded" to use the /w/index.php?title=<title>&<more query parameters> format.

In case it was unclear, the short URL versions of the links I mentioned in my original post already work, they're just not being used by MediaWiki. That is what I'm trying to change. I suppose I'll have to resort to editing the source.

Bolaja (talkcontribs)

Anyone else, maybe?

Bolaja (talkcontribs)
88.130.106.110 (talkcontribs)

See task T14619 for the current status - and for showstoppers.

Bolaja (talkcontribs)

What is described in that link can already be accomplished by adjusting $wgActionPath, though. I was specifically referring to the handful of links that can not be configured in such a manner.

Bolaja (talkcontribs)

Bump.

46.134.60.214 (talkcontribs)

Bump

Ciencia Al Poder (talkcontribs)
Reply to "Short URL setup leaves some index.php links behind"