File tree Expand file tree Collapse file tree
component/itinerary/navigator Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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:'
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments