@studyportals/fawkes 8.0.2-20 → 8.0.2-21

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.
@@ -25,12 +25,9 @@ export class AttendanceDegree extends ProgrammesBaseIndexabilityPolicy {
25
25
  async generateUrls() {
26
26
  const attendanceFragments = AttendancePresenter.getInstance().getFragments();
27
27
  const degreeFragments = DegreePresenter.getInstance().getFragments();
28
- // Allow online and blended learning formats
29
- const allowedAttendanceIds = ["online", "blended"];
30
- const allowedAttendances = attendanceFragments.filter(attendance => allowedAttendanceIds.includes(attendance.id));
31
28
  const paths = [];
32
29
  for (const pageNumber of this.indexablePageNumbers) {
33
- for (const attendance of allowedAttendances) {
30
+ for (const attendance of attendanceFragments) {
34
31
  for (const degree of degreeFragments) {
35
32
  const filterKeyValues = new Map([
36
33
  [FilterKey.DELIVERY_METHOD, [attendance.id]],
@@ -35,7 +35,7 @@ export class ContinentSpecialProgrammes extends ProgrammesBaseIndexabilityPolicy
35
35
  ]);
36
36
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
37
37
  if (result) {
38
- paths.push(this.getPathWithPageNumber(`${continent.path}/${specialProgramme.path}`, pageNumber));
38
+ paths.push(this.getPathWithPageNumber(`${specialProgramme.path}/${continent.path}`, pageNumber));
39
39
  }
40
40
  }
41
41
  }
@@ -40,7 +40,7 @@ export class DegreeAreaTuitionFee extends ProgrammesBaseIndexabilityPolicy {
40
40
  ]);
41
41
  const result = await this.checkRulesForSitemapWithPageNumber(filterKeyValues, pageNumber);
42
42
  if (result) {
43
- paths.push(this.getPathWithPageNumber(`${degree.path}/${area.path}/${tuitionFee.path}`, pageNumber));
43
+ paths.push(this.getPathWithPageNumber(`${degree.path}/${tuitionFee.path}/${area.path}`, pageNumber));
44
44
  }
45
45
  }
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyportals/fawkes",
3
- "version": "8.0.2-20",
3
+ "version": "8.0.2-21",
4
4
  "description": "A package to centralize SEO related logic for SBLP and Sitemap Generator.",
5
5
  "files": [
6
6
  "./dist"