Unified · Split
| @@ -42,7 +42,7 @@ module Docs · 41 unmodified lines | |||
| 42 | def fix_url(url) | 42 | def fix_url(url) |
| 43 | if context[:redirections] | 43 | if context[:redirections] |
| 44 | url = URL.parse(url) | 44 | url = URL.parse(url) |
| 45 | path = url.path.downcase | 45 | path = url.path ? url.path.downcase : nil |
| 46 | 46 | ||
| 47 | if context[:redirections].key?(path) | 47 | if context[:redirections].key?(path) |
| 48 | url.path = context[:redirections][path] | 48 | url.path = context[:redirections][path] |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | prepend FixInternalUrlsBehavior | 3 | prepend FixInternalUrlsBehavior |
| 4 | prepend FixRedirectionsBehavior | 4 | prepend FixRedirectionsBehavior |
| 5 | 5 | ||
| 6 | # release = '2024-11-18' | 6 | # release = '2025-01-30' |
| 7 | self.name = 'JavaScript' | 7 | self.name = 'JavaScript' |
| 8 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference' | 8 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference' |
| 9 | self.links = { | 9 | self.links = { |