| @@ -394,13 +394,15 @@ | ||
| 394 | 394 | |
| 395 | 395 | // access booking registry for the first related booking (if any) |
| 396 | 396 | $bookingRegistry = $bookingIds ? VBOBookingRegistry::getInstance(['id' => $bookingIds[0] ?? 0]) : null; |
| 397 | 397 | |
| 398 | + // get booking language | |
| 399 | + $lang = $bookingRegistry->getProperty('lang'); | |
| 400 | + | |
| 398 | 401 | // route quote URI |
| 399 | 402 | $quoteUri = VikBooking::externalroute( |
| 400 | - "index.php?option=com_vikbooking&view=quote&ref={$quote->uuid}", | |
| 401 | - false, | |
| 402 | - (VikBooking::findProperItemIdType(['quote'], $bookingRegistry->getProperty('lang') ?: null) ?: null) | |
| 403 | + "index.php?option=com_vikbooking&view=quote&ref={$quote->uuid}" . ($lang ? "&lang={$lang}" : ''), | |
| 404 | + false | |
| 403 | 405 | ); |
| 404 | 406 | |
| 405 | 407 | // build the list of known tag parameters |
| 406 | 408 | $tagParameters = [ |