Skip to content

Commit

Permalink
Return city as well, when provider = bahnzumberg
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Dec 15, 2024
1 parent 182ef0d commit e7bff55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/views/Main/DetailReworked.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,18 @@ const DetailReworked = (props) => {
let imageUrl = "";
let description = "";
let URL = shareUrl();
let target_url = "";
if (!!tour) {
page_title = "Zuugle: " + tour.title + " (" + tour.provider_name + ")";
imageUrl = tour?.image_url && tour?.image_url.length > 0 && tour?.image_url;
description =
tour?.description && tour?.description.length > 0 && tour?.description;
description = tour?.description && tour?.description.length > 0 && tour?.description;
if (tour.provider==='bahnzumberg' && _city) {
target_url = tour.url + 'ab-' & _city;
}
else {
target_url = tour.url;
}
console.log("target_url = ", target_url)
}

return (
Expand Down Expand Up @@ -725,7 +732,7 @@ const DetailReworked = (props) => {
<div
className="tour-detail-provider-container"
onClick={() => {
window.open(tour?.url);
window.open(target_url);
}}
>
<div className="tour-detail-provider-icon">
Expand Down
1 change: 0 additions & 1 deletion src/views/Start/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export default function Header({
const cityObj = allCities.find((e) => e.value === city);
if (cityObj) {
updateCapCity(cityObj.label);
// console.log("setting search params", city);
searchParams.set("city", city);
}
}
Expand Down

0 comments on commit e7bff55

Please sign in to comment.