Skip to content

Commit b0c973a

Browse files
committed
fix: add dedicated config link for navi ticket button
1 parent e98b314 commit b0c973a

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

app/component/itinerary/navigator/NaviBottom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function NaviBottom(
2525
const intl = useIntl();
2626

2727
const isTicketSaleActive =
28-
!config.hideNaviTickets &&
28+
config.navigatorTicketLink &&
2929
shouldShowFareInfo(config, legs) &&
3030
getFaresFromLegs(legs, config)?.find(f => !f.isUnknown);
3131

@@ -76,7 +76,7 @@ function NaviBottom(
7676
>
7777
<a
7878
onClick={handleTicketButtonClick}
79-
href={localizedUrl(config.ticketLink, currentLanguage)}
79+
href={localizedUrl(config.navigatorTicketLink, currentLanguage)}
8080
target="_blank"
8181
rel="noopener noreferrer"
8282
>

app/configurations/config.hsl.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ export default {
371371
ticketPurchaseLink: function purchaseTicketLink(fare) {
372372
return `https://open.app.hsl.fi/zoneTicketWizard/TICKET_TYPE_SINGLE_TICKET/${fare.ticketName}/adult/-`;
373373
},
374+
navigatorTicketLink: {
375+
fi: 'https://open.app.hsl.fi/tickets', // shows existing ticket
376+
},
374377
ticketLinkOperatorCode: 'hsl',
375378
// mapping fareId from OTP fare identifiers to human readable form
376379
// in the new HSL zone model, just strip off the prefix 'HSL:'

app/configurations/config.waltti.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ export default {
286286
},
287287
analyticsClass: 'plausible-event-name=Ticket+Purchase+Link',
288288

289-
hideNaviTickets: true, // TODO: temporary force switch
290289
navigation: true,
291290

292291
// TODO: flex disabled for now, proper configuration coming in the future

0 commit comments

Comments
 (0)