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