Open cohenaj194 opened 2 weeks ago
@coderabbitai give @DarthNerdus some direction on how to add url endings to the world-comparison search page
[!TIP] For best results, initiate chat on the files or code changes.
@cohenaj194, to add URL endings to the world-comparison search page, here are the steps that @DarthNerdus can follow:
Update the links
function:
links
function in the app/routes/queries.world-comparison.tsx
file already returns a canonical URL. If there are dynamic URL endings (e.g., based on query parameters), they should be appended to this URL.export const links: LinksFunction = ({ params }) => [
{
rel: 'canonical',
href: `https://saddlebagexchange.com/queries/world-comparison${params.someDynamicPart ? `/${params.someDynamicPart}` : ''}`
}
]
Update the meta
function:
meta
function accordingly.export const meta: MetaFunction = ({ params }) => {
return {
charset: 'utf-8',
viewport: 'width=device-width,initial-scale=1',
title: `Saddlebag Exchange: ffxiv export search${params.someDynamicPart ? ` - ${params.someDynamicPart}` : ''}`,
description: 'Explore and compare FFXIV item prices across different servers with Saddlebag Exchange.'
}
}
Include mobileColumnList
if relevant:
mobileColumnList
is included in the page if it's relevant to avoid mapping issues.Let me know if you need further assistance!
https://github.com/ff14-advanced-market-search/saddlebag-with-pockets/blob/master/app/routes/queries.world-comparison.tsx
example of adding url endings https://github.com/ff14-advanced-market-search/saddlebag-with-pockets/pull/391/files