"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:Question marks in article names broken

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

If you go to the link [1] (note the %3F for question mark at the end), you end up at fi:Keskustelu Wikitravelista:Mikä on artikkeli (with no question mark).

ru:Wikitravel:Что заслуживает собственной статьи? shows up as though it was not yet an article, when in fact it has been created.

What should happen[edit]

How to fix it[edit]

Access the page in question by clicking "edit", and then move it to a questionmarkless title. Jpatokal 10:58, 17 March 2008 (EDT)

The IB tech department looked into this issue and here's the feedback: This looks like its going to work in the new webserver set up we're working on (as part of it we've changed the internal routing which may have eliminated whatever was stripping the "?"). In general, though, the urls "http:/wikitravel.org/shared/pagename" and "http:/wikitravel.org/shared/pagename?" aren't really different urls. The "?" is a delimiter character separating the query string from the rest of the url. When the query string is blank, as in this case, its really extraneous . Anything that breaks the url into pieces and puts it back together is likely to strip the "?" when the query string is blank. In theory, escaping the "?" (the %3F bit) should work. In practice, however, there is a tendency for the url to get escaped by one layer and not escaped properly we passing through to the next layer. While it should work for the new setup, it could break again in the future. It would be best to avoid having a question mark at the end of page titles where possible. JuCo 19:51, 19 March 2008 (EDT)

When it happens[edit]

The history is still retrievable, and it is possible to view the page (and edit it) by purging the cache, although that does not resolve the problem that anyone following a link there, or even entering the article name, will see it as though it were never written.

OK, on further examination, it turns out that the problem is that, on Russian Wikitravel, if you enter a page name with a question mark, you get dumped at that url sans the question mark. So if you type in :ru:Wikitravel:Что заслуживает собственной статьи?, you wind up at ru:Wikitravel:Что заслуживает собственной статьи, which I have now made a redirect to the appropriate page. --Peter Talk 15:53, 12 January 2008 (EST)

What should happen[edit]

Clearly, the article should show up.

When you type in an article title with a question mark, the software should take you to that article. The redirect solution is just a bandaid and there might be more problems as a result of this bug that I'm not yet aware of. --Peter Talk 15:53, 12 January 2008 (EST)

The version with "?" and without should be distinct.

How to fix it[edit]

It's actually really hard. The question mark is the marker for the beginning of URL parameters in the HTTP URL format, and somewhere along the line either Apache or PHP or mod_redirect is stripping out the question mark. --Evan 19:00, 13 June 2007 (EDT)

Will the new MediaWiki upgrade fix this? If not, I suggest we close this ticket and deal with again if the problem is raised again. Riggwelter 12:53, 22 June 2012 (EDT)
It did. --Peter Talk 13:00, 22 June 2012 (EDT)

Additional comments[edit]

A very talented Russian contributor painstakingly translated this meta-article from the English—it would be a shame to turn him, in particular, off to working on the Russian Wikitravel, so lets get this solved!

Sign below, please[edit]

--Peter Talk 15:32, 12 January 2008 (EST)

Variants

Actions

In other languages