@studyportals/fawkes 8.1.2-4 → 8.1.2-5

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.
@@ -35,7 +35,7 @@ export class ContinentDuration extends ProgrammesBaseIndexabilityPolicy {
35
35
  ]);
36
36
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
37
37
  if (result) {
38
- paths.push(this.getPathWithPageNumber(`${continent.path}/${duration.path}`, pageNumber));
38
+ paths.push(this.getPathWithPageNumber(`${duration.path}/${continent.path}`, pageNumber));
39
39
  }
40
40
  }
41
41
  }
@@ -35,7 +35,7 @@ export class ContinentFormat extends ProgrammesBaseIndexabilityPolicy {
35
35
  ]);
36
36
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
37
37
  if (result) {
38
- paths.push(this.getPathWithPageNumber(`${continent.path}/${format.path}`, pageNumber));
38
+ paths.push(this.getPathWithPageNumber(`${format.path}/${continent.path}`, pageNumber));
39
39
  }
40
40
  }
41
41
  }
@@ -38,7 +38,7 @@ export class DegreeContinentTuitionFee extends ProgrammesBaseIndexabilityPolicy
38
38
  ]);
39
39
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
40
40
  if (result) {
41
- paths.push(this.getPathWithPageNumber(`${degree.path}/${continent.path}/${tuitionFee.path}`, pageNumber));
41
+ paths.push(this.getPathWithPageNumber(`${degree.path}/${tuitionFee.path}/${continent.path}`, pageNumber));
42
42
  }
43
43
  }
44
44
  }
@@ -27,12 +27,10 @@ export class DisciplineCountryAttendance extends ProgrammesBaseIndexabilityPolic
27
27
  const countryFragments = CountryPresenter.getInstance().getFragments();
28
28
  const attendanceFragments = AttendancePresenter.getInstance().getFragments();
29
29
  const paths = [];
30
- const allowedAttendanceIds = ['online'];
31
- const allowedAttendances = attendanceFragments.filter(a => allowedAttendanceIds.includes(a.id));
32
30
  for (const pageNumber of this.indexablePageNumbers) {
33
31
  for (const discipline of disciplineFragments) {
34
32
  for (const country of countryFragments) {
35
- for (const attendance of allowedAttendances) {
33
+ for (const attendance of attendanceFragments) {
36
34
  const filterKeyValues = new Map([
37
35
  [FilterKey.DISCIPLINES, [discipline.id]],
38
36
  [FilterKey.COUNTRY, [country.id]],
@@ -35,7 +35,7 @@ export class DisciplineSpecialProgrammes extends ProgrammesBaseIndexabilityPolic
35
35
  ]);
36
36
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
37
37
  if (result) {
38
- paths.push(this.getPathWithPageNumber(`${discipline.path}/${specialProgramme.path}`, pageNumber));
38
+ paths.push(this.getPathWithPageNumber(`${specialProgramme.path}/${discipline.path}`, pageNumber));
39
39
  }
40
40
  }
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.1.2-4",
3
+ "version": "8.1.2-5",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"