Page MenuHomePhabricator

Exclamation mark at the end of URL is not detected, should this be URL encoded?
Closed, ResolvedPublic

Description

Exclamation mark is not part of the URL (it's not seen as that with MediaWiki)
Example here: https://nl.wikipedia.org/wiki/Overleg:Douwe_Bob

Should the (last) exclamation mark in an URL be encoded?

Event Timeline

I’m a little confused. The archive URL works fine and MW is considering the ! As part of the URL as is IABot.

Screenshot, illustrating the problem

image.png (290×1 px, 55 KB)

Wiki code:

Externe links aangepast

Hallo medebewerkers,

Ik heb zojuist 2 externe link(s) gewijzigd op [[Douwe Bob]]. Neem even een moment om [https://nl.wikipedia.org/w/index.php?diff=prev&oldid=51291246 mijn bewerking] te beoordelen. Als u nog vragen heeft of u de bot bepaalde links of pagina's wilt laten negeren, raadpleeg dan deze eenvoudige [[:m:InternetArchiveBot/FAQ|FaQ]] voor meer informatie. Ik heb de volgende wijzigingen aangebracht:
*Archief https://web.archive.org/web/20150411162303/http://www.bevrijdingsfestivals.nl/ambassadeurs/douwe_bob toegevoegd aan http://www.bevrijdingsfestivals.nl/ambassadeurs/douwe_bob
*Archief https://web.archive.org/web/20141110111102/http://www.bevrijdingsfestivals.nl/nieuws/nieuwsartikel/36/Ambassadeurs+van+de+Vrijheid+2014+zijn+Douwe+Bob,+Gers+Pardoel+en+Kensington! toegevoegd aan http://www.bevrijdingsfestivals.nl/nieuws/nieuwsartikel/36/Ambassadeurs+van+de+Vrijheid+2014+zijn+Douwe+Bob,+Gers+Pardoel+en+Kensington!

Zie de [[:m:InternetArchiveBot/FAQ|FAQ]] voor problemen met de bot of met het oplossen van URLs.

Groet.—[[:en:User:InternetArchiveBot|'''<span style="color:darkgrey;font-family:monospace">InternetArchiveBot</span>''']] <span style="color:green;font-family:Rockwell">([[:en:User talk:InternetArchiveBot|Fouten melden]])</span> 22 mrt 2018 10:54 (CET)

That's unfortunately an issue with MW. It's not really an issue per say but just how the parser operates in this case. It can easily be worked around by replacing the plain URL with a bracketed link. I.E.: from "http://example.com" to "[http://example.com http://example.com]", but considering most cases, seems like a redundant fix to one off problem.

Cirdan subscribed.

As Cyberpower pointed out, this is a problem with the MediaWiki parser and can be fixed by editing Gebruiker:InternetArchiveBot/Dead-links.js to use

[{link} {link}]

instead of

{link}