fix: Remove metadata for ratings subpage, it no longer exists
This commit is contained in:
@@ -43,25 +43,6 @@ export async function getTitle(data: RawMetadataSchema) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (data.subpageUrl) {
|
switch (data.subpageUrl) {
|
||||||
case "reviews":
|
|
||||||
const reviewsTitleLong = intl.formatMessage(
|
|
||||||
{
|
|
||||||
defaultMessage:
|
|
||||||
"Ratings & reviews for {hotelName} in {destination}",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
hotelName: data.hotelData.name,
|
|
||||||
destination: data.hotelData.address.city,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
const reviewsTitleShort = intl.formatMessage(
|
|
||||||
{ defaultMessage: "Ratings & reviews for {hotelName}" },
|
|
||||||
{ hotelName: data.hotelData.name }
|
|
||||||
)
|
|
||||||
if (reviewsTitleLong.length > 60) {
|
|
||||||
return reviewsTitleShort
|
|
||||||
}
|
|
||||||
return reviewsTitleLong
|
|
||||||
case data.additionalHotelData?.hotelParking.nameInUrl:
|
case data.additionalHotelData?.hotelParking.nameInUrl:
|
||||||
const parkingTitleLong = intl.formatMessage(
|
const parkingTitleLong = intl.formatMessage(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user