adamhwang / ita-matrix-powertools

ITA Matrix Powertools
https://chrome.google.com/webstore/detail/ita-matrix-powertools/menecfddnlmanmpadcalononkolnplpp?hl=en
GNU General Public License v2.0
64 stars 12 forks source link

Latam booking failure #6

Open anthonyhashemi opened 2 years ago

anthonyhashemi commented 2 years ago

When accessing a latam itenary I visit the http://booking.lan.com/cgi-bin/compra.... link provided which turns into ssl as mentioned in the code below

    // The booking.lan.com url as of 2/27/2020 needs to be http instead of https. Fortunately, it does redirect you
    // to https://ssl.lan.com afterwards, but the booking link seems to be more successful than starting with ssl
    return (
      `http://booking.lan.com/cgi-bin/compra/paso4.cgi?forced_home=${edition}&sessionParameters=` +
      encodeURIComponent(JSON.stringify(parameters))
    );
  };

After filling in the passenger details and clicking "continue" on the page it redirects back to https://www.latamairlines.com/gb/en

Are there any tips to get around this?

I know this is not necessarily an issue with the tool but maybe the site that is being linked to no longer works as expected?