Skip to content

Comments

UHF-12620: Fix generating course url#1498

Merged
jeremysteerio merged 3 commits intomainfrom
UHF-12620
Feb 23, 2026
Merged

UHF-12620: Fix generating course url#1498
jeremysteerio merged 3 commits intomainfrom
UHF-12620

Conversation

@jeremysteerio
Copy link
Contributor

@jeremysteerio jeremysteerio commented Feb 20, 2026

UHF-12620

What was done

  • Fixes generating result card urls

@jeremysteerio jeremysteerio marked this pull request as ready for review February 20, 2026 14:47
Copilot AI review requested due to automatic review settings February 20, 2026 14:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the generation of course URLs in the cross-institutional studies search functionality by updating the URL construction logic to use language-specific base URLs.

Changes:

  • Added baseUrls object to TypeScript type definitions with language-specific URL entries
  • Updated URL generation logic to use the new language-specific base URLs instead of concatenating language to a single base URL
  • Updated compiled JavaScript to reflect the source code changes

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
src/js/types/drupalSettings.d.ts Added baseUrls property with language-keyed URL mapping to support language-specific base URLs
src/js/react/apps/linkedevents/modules/cross-institution-studies/components/ResultCard.tsx Updated getUrl function to use language-specific base URLs from the new baseUrls object
dist/js/linkedevents.min.js Updated minified JavaScript bundle with the new URL generation logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

✅ Tests passed! You can check the output here: https://city-of-helsinki.github.io/drupal-hdbt-visual-regression/pull/1498/html_report/

Copy link
Contributor

@annadruid annadruid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jeremysteerio jeremysteerio merged commit 1cad5e6 into main Feb 23, 2026
7 checks passed
@jeremysteerio jeremysteerio deleted the UHF-12620 branch February 23, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants