Originally Posted by
Geoflying
Cool. How did you find this?
It's a popup when booking codeshares, IIRC. I loaded the URL I always used to use, and it redirected me to that (crappy/broken) page on the beta website.
Looking at its source, it loads
aeroplanmilage.js, which loads info like so:
Code:
acApp.directive('aeroplanMilage', [function () {
return {
restrict: 'E',
templateUrl: '/aeroplanmilage.html',
scope: {
lang: '@'
},
controller: ["$scope", "$http", "$location", "urlVarService", function ($scope, $http, $location, urlVarService) {
var urlVars = urlVarService.getVars();
$http.get("https://beta.aircanada.com/content/dam/aircanada/portal/data/dialog-box/" + (urlVars.source || "a3") + ".json").then(function(data){
$scope.accumulationMiles = data.data;
});
}]
};
}]);
Nice of AC to not minify any of their JS...

You'll note it defaults to Aegean.
Originally Posted by
Geoflying
So the first link gives Aegean and the second some JSON code. How do I get to the LH page that looks like the Aegean one?
I forced it to load
lh.json rather than the default
a3.json by mucking around with Chrome's dev tools. I'm not frontend web guy, and am not familiar with Angular, so I'm not exactly sure where it tries to read the IATA code from (
urlVarService.getVars()). I'm sure someone else on this forum does though.
Originally Posted by
Geoflying
Additionally, if I go to
https://beta.aircanada.com/content/d...og-box/nh.json (following the same pattern) I notice that the information does not appear to be consistent with what I found for accumulation on ANA (see my other thread) specifically where I had an AC fare bucket of H on a codeshare but got only 50% miles instead of the 70% that the JSON listing would appear to sugegst.
That's actually quite concerning... It means AC is showing users incorrect information

.