@studyportals/fawkes 8.2.4-4 → 8.2.4-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,8 +8,7 @@ export class OnlyFullLocationFiltersSelectedRule {
|
|
|
8
8
|
return await this.isEligible(dependencies);
|
|
9
9
|
}
|
|
10
10
|
forSitemapGenerator() {
|
|
11
|
-
|
|
12
|
-
return Promise.resolve(false);
|
|
11
|
+
return Promise.resolve(true);
|
|
13
12
|
}
|
|
14
13
|
getDescription() {
|
|
15
14
|
return `Only city, country and area (if US, UK or AU) filters are selected`;
|
|
@@ -34,15 +34,15 @@ export class CityPresenter {
|
|
|
34
34
|
let cityPath = ``;
|
|
35
35
|
const countryPath = countryGetIsoCodePath(country?.iso || '');
|
|
36
36
|
if (city.areaId === null || city.areaId === undefined) {
|
|
37
|
-
cityPath += countryPath
|
|
37
|
+
cityPath += `/${countryPath}`;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
else {
|
|
40
40
|
const area = areaGetPath(city.areaId?.toString() || '');
|
|
41
41
|
if (area && area !== '') {
|
|
42
42
|
cityPath += `/${area}`;
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
cityPath += countryPath
|
|
45
|
+
cityPath += `/${countryPath}`;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
cityPath += `/${city.virtualPath}`;
|