1jQuery(document).ready(function ($) { 2 console.log('laguardiab redirects'); 3 4 // only applies to 404 page 5 if (!$('body').hasClass('error404')) return; 6 7 var url = window.location.href; 8 var base_url = window.location.origin; 9 var path = window.location.pathname; 10 var anchor = window.location.hash; 11 12 console.log(url); 13 console.log(path); 14 console.log(anchor); 15 16 var current_url = path + anchor; 17 18 var redirects = { 19 "/flight-status": "https://www.laguardiaairport.com/flights?direction=departures&showAllFlights=true", 20 "/security-wait-time": "https://www.laguardiaairport.com/", 21 "/getting-to-from-around": "https://www.laguardiaairport.com/transportation", 22 "/getting-to-from-around/explore-terminal-b/#art-at-terminal-b": "https://www.laguardiaairport.com/explore-lga/terminals/terminal-b", 23 "/dine-shop-more": "https://www.laguardiaairport.com/dine-shop-relax", 24 "/dine-shop-more#dine": "https://www.laguardiaairport.com/dine-shop-relax/food?structureName=Terminal+B", 25 "/dine-shop-more#shops": "https://www.laguardiaairport.com/dine-shop-relax/shops?structureName=Terminal+B", 26 "/dine-shop-more#services": "https://www.laguardiaairport.com/explore-lga/services", 27 "/dine-shop-more#lounges": "https://www.laguardiaairport.com/dine-shop-relax/lounge-and-rest?structureName=Terminal+B", 28 "/getting-to-from-around/explore-terminal-b#art-at-terminal-b": "https://www.laguardiaairport.com/explore-lga/terminals/terminal-b/terminal-b-art", 29 "/getting-to-from-around/explore-terminal-b#the-water-feature": "https://www.laguardiaairport.com/dine-shop-relax/lounge-and-rest/detail?poiId=2981&name=Water%20Feature&structureName=Terminal%20B&returnTo=/dine-shop-relax/lounge-and-rest", 30 "/getting-to-from-around/explore-terminal-b#family-amenities": "https://www.laguardiaairport.com/explore-lga/services", 31 "/getting-to-from-around/explore-terminal-b#terminal-tour": "https://www.laguardiaairport.com", 32 "/getting-to-from-around/b-fast-front-of-the-line-security-pass": "https://bfast.aero/A8MD4L5?full", 33 "/terminal-info": "https://www.laguardiaairport.com/flights/airlines", 34 "/terminal-info#airlines": "https://www.laguardiaairport.com/explore-lga/terminals/terminal-b/airline-terminalb", 35 "/terminal-info#accessibility": "https://www.laguardiaairport.com/explore-lga/accessibility-services", 36 "/terminal-info#lost-found": "https://www.chargerback.com/lga", 37 "/terminal-info#faq": "https://www.laguardiaairport.com/explore-lga/services", 38 } 39 40 for (const [old_url, new_url] of Object.entries(redirects)) { 41 if (current_url == old_url) { 42 console.log(`Redirecting from ${old_url} to ${base_url}${new_url}`); 43 window.location.href = new_url; 44 } 45 } 46 47 48});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.