Convert various URLs to https
This commit is contained in:
parent
af1397436f
commit
be86e4824f
23 changed files with 124 additions and 124 deletions
|
@ -115,9 +115,9 @@ module BrowseHelper
|
|||
lookup_us = lookup.tr(" ", "_")
|
||||
|
||||
if page = WIKI_PAGES.dig(locale, type, lookup_us)
|
||||
url = "http://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
|
||||
url = "https://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
|
||||
elsif page = WIKI_PAGES.dig("en", type, lookup_us)
|
||||
url = "http://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
|
||||
url = "https://wiki.openstreetmap.org/wiki/#{page}?uselang=#{locale}"
|
||||
end
|
||||
|
||||
url
|
||||
|
@ -158,7 +158,7 @@ module BrowseHelper
|
|||
end
|
||||
|
||||
{
|
||||
:url => "http://#{lang}.wikipedia.org/wiki/#{value}?uselang=#{I18n.locale}#{encoded_section}",
|
||||
:url => "https://#{lang}.wikipedia.org/wiki/#{value}?uselang=#{I18n.locale}#{encoded_section}",
|
||||
:title => value + section
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue