Browse Source

fix: Fixed passenger rights link

master
Denis Thiessen 5 months ago
parent
commit
915e87b3c6
  1. 16
      src/pages/study_site_1/StartPage1.jsx

16
src/pages/study_site_1/StartPage1.jsx

@ -16,6 +16,16 @@ function StartPage1({ redirectLoc }) {
// TODO THINK IF I WANT TO JUST USE AN OVERLAY FOR OTHER DUMMY LINKS, WHICH ARENT CORRECT???
// IS THAT OKAY???
const redirectPageStr = "./redirectPage/";
const bannerTranslationKey = "/task_1_info";
const passengerRightsLink =
redirectPageStr +
encodeURIComponent(
"https://europa.eu/youreurope/citizens/travel/passenger-rights/air/index_en.htm"
) +
bannerTranslationKey;
return (
<StudySite>
<WebpageBanner translationKey="task_1_info" />
@ -62,10 +72,8 @@ function StartPage1({ redirectLoc }) {
<Text>
Since BudgetBird Airlines offers no flights outside the European
Union the{" "}
<a href="https://europa.eu/youreurope/citizens/travel/passenger-rights/air/index_en.htm">
European Air Passenger Rights
</a>{" "}
will apply.
<a href={passengerRightsLink}>European Air Passenger Rights</a> will
apply.
</Text>
</Collapse>
<Collapse title="What costs will incur for rebooking my ticket?">

Loading…
Cancel
Save