Author: magnus
Description:
Tested with MediaWiki 1.18.0, Semantic MediaWiki 1.7.0.1.
- Steps to Reproduce:
Create
- a property "Website" of type "URL"
- a template "URLtest" that contains a field called "URL", that outputs the field in two different ways:
- {{{URL}}}
- [[Website::{{{URL|}}}]]
Use the template in a page, like this:
{{URLtest|URL=http://example.com/}}
- Actual Results:
- Outputs the URL as expected
- Outputs it as <a href="http:////example.com/">http://example.com/</a>
In the factbox at the bottom of the page it is output as <a href="http:////example.com/">http:////example.com/</a>
Live example: http://bibliotekhistorie.no/index.php/Norsk_Bibliotekforening
Expected Results:
Both 1. and 2. should output http://example.com/ and the link in the factbox should also be correct.
- Additional Information:
If I change the property of "Website" from "URL" to "Text", there are no extra slashes in the URL.
Firefox will try to gloss over this problem - when you hover over a link it will not show the extra slashes and links will work, but if you view source or use the "insepect element" function of Firebug you can still see it. Internet Explorer is less "kind" and there the links with extra slashes will not work.
Version: unspecified
Severity: trivial
OS: Linux
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=32955