File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,10 @@ def effective_status # rubocop:disable Metrics/PerceivedComplexity
220220 # of climate-related pages to instead of giving them 4xx status codes.
221221 return 404 if redirected_to . ends_with? ( 'epa.gov/sites/production/files/signpost/cc.html' )
222222
223+ # Special case for climate.nasa.gov getting moved with bad redirects for all the sub-pages.
224+ return 404 if /^https?:\/ \/ climate.nasa.gov\/ .+$/i . match? ( url ) &&
225+ redirected_to . ends_with? ( '://science.nasa.gov/climate-change/' )
226+
223227 # We see a lot of redirects to the root of the same domain when a page is removed.
224228 parsed_url = Addressable ::URI . parse ( url )
225229 return 404 if parsed_url . path != '/' && Surt . surt ( parsed_url . join ( '/' ) ) == Surt . surt ( redirected_to )
You can’t perform that action at this time.
0 commit comments