openstreetmap-website/app
João G. Packer 18734786a1 Fixed wikipedia link reference to specific sections
When creating  a wikipedia link from a tag, the function
is (correctly) appending "?userlang=#{I18N.lang}" to the URL,
but doing this breaks the reference to a specific section
of a wikipedia article (if there is any).

For example, if the tag is "wikipedia=Article#Section", the function
would create a link to "../Article#Section?uselang=xx", and then the
browser wouldn't be able to correctly find the section. The correct
link result should be "../Article?uselang=xx#Section".

This commit fixes this by verifying if there is a reference to a
specific section of the article, and then putting "?uselang=#{I18N.lang}"
between the article's name and the section name.
2014-03-01 00:26:37 +00:00
..
assets Apply zoomPrecision to location cookie 2014-02-28 00:26:34 +00:00
controllers Drop the slim layout 2014-02-16 16:03:00 +00:00
helpers Fixed wikipedia link reference to specific sections 2014-03-01 00:26:37 +00:00
models Remove unused (and non-functioning) code 2014-02-26 18:53:25 +00:00
views Uniqify lists of containing ways/relations 2014-02-23 00:08:51 +00:00