[openstreetmap/openstreetmap-website] wikimedia_commons=Category:xxxx#/media/File:yyyy don't display image (#2425)
Yves Pratter
notifications at github.com
Fri Nov 8 14:39:23 UTC 2019
Hi,
The link display the category page, try to open the image in media viewer but can't.
Example: [n4841942392](https://www.openstreetmap.org/node/4841942392)
* `wikimedia_commons=`[Category:Natural monument 6.33.831 in Wahlsburg#/media/File:Naturdenkmal_Landkreis_Kassel_6.33.831_2018-06-16_b.JPG](https://commons.wikimedia.org/wiki/Category:Natural%20monument%206.33.831%20in%20Wahlsburg#/media/File:Naturdenkmal_Landkreis_Kassel_6.33.831_2018-06-16_b.JPG?uselang=fr)
To fix this issue, remove `?uselang=#{I18n.locale}` at the end of the url string.
* `wikimedia_commons=`[Category:Natural monument 6.33.831 in Wahlsburg#/media/File:Naturdenkmal_Landkreis_Kassel_6.33.831_2018-06-16_b.JPG](https://commons.wikimedia.org/wiki/Category:Natural%20monument%206.33.831%20in%20Wahlsburg#/media/File:Naturdenkmal_Landkreis_Kassel_6.33.831_2018-06-16_b.JPG)
Regards,
https://github.com/openstreetmap/openstreetmap-website/blob/816ee8ec92735b5c80b382857953ac4325096a71/app/helpers/browse_tags_helper.rb#L119
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2425
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191108/568150d6/attachment.html>
More information about the rails-dev
mailing list