Jump to content

Topic on Help talk:VisualEditor/User guide

Visual Editor adds "index.php?title=" in front of every file link when saving

11
216.48.86.87 (talkcontribs)

If I have a file link like [[Media:filename.pdf|filename]] on a page that I'm editing with the visual editor, it changes it to [[index.php?title=Media:filename.pdf|filename]] and every other similar file link in the page. These newly renamed filelinks don't work. Is there a way to stop Visual Editor from doing that?

Stephen

Elitre (WMF) (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

Are you running your own wiki?

216.48.86.87 (talkcontribs)

Yes.

1.35.7
213.61.173.172 (talkcontribs)

I have a similar issue with the categories.

When editing a page in visual editor the categories are red and displayed as "index.php?title=Kategorie:XXX". When saved and viewed it is a normal link.

Same also for some of the links

213.61.173.172 (talkcontribs)

When I add $wgUsePathInfo=true; in my Localsettings this issue is solved, BUT then I can no longer change the Namespaces in "Special:AllPages".

216.48.86.87 (talkcontribs)

Thanks! This worked for me. I was hoping to stay with 1.35 because it is an LTS. I checked "Special:AllPages" and it seemed to work for me but I really only have standard Namespaces and may not be using Namespaces as fully as you.

213.61.173.172 (talkcontribs)

It seems to be fixed in v1.39: phabricator.wikimedia.org/T270219

I'm using v1.38 and will test to upgrade

2605:A601:AFE8:4C00:EC52:178A:F7A6:444B (talkcontribs)

Adding $wgUsePathInfo=true; to LocalSettings resolved my issue.

Gigisoave (talkcontribs)

I'm using v1.41 and I set $wgUsePathInfo=true; in my Localsettings, but still I get the links changed. Thank you Luigi

School4schools (talkcontribs)

I added a Support Desk topic on this issue here: Visual editor breaks category:fubar on pages on Project:Support desk (mediawiki.org)

Just found this page, so I will update here if anyone can help me on that request.

Reply to "Visual Editor adds "index.php?title=" in front of every file link when saving"