openstreetmap-website/app/helpers
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
..
application_helper.rb Don't rely on body classes so much 2013-10-13 14:46:08 -07:00
asset_helper.rb Build an asset manifest for iD 2013-08-24 00:05:21 +01:00
browse_helper.rb Fixed wikipedia link reference to specific sections 2014-03-01 00:26:37 +00:00
changeset_helper.rb Fix lego translations 2013-11-12 14:46:47 -08:00
geocoder_helper.rb Generate valid URLs for search results with no object attached 2013-12-02 22:25:46 +00:00
note_helper.rb Restructured notes page 2013-11-11 09:35:58 -08:00
notifier_helper.rb Rework signup emails a bit 2012-11-05 09:54:58 +00:00
title_helper.rb Fix test failures 2013-11-19 10:30:18 -08:00
trace_helper.rb Removed unused link_to_page from the trace helpers 2011-11-14 09:42:55 +00:00
user_blocks_helper.rb New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages. 2009-09-29 16:44:03 +00:00
user_helper.rb Set empty alt text on user images 2014-01-12 19:28:01 +00:00
user_roles_helper.rb Move generation of role icons into a helper 2012-03-21 19:20:40 +00:00