You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for a listing on google non-open listings can be shown. This is not ideal if a listing is still in draft or a listing has been duplicated and the older posting is showing higher in the search results.
Since it can be a long time between google picking up a change from the meta tags it has been determined to only add this to the closed listings as those should normally not be re-opened whereas a draft listing could become open at any time
How Can This Be Tested/Reviewed?
You can't test if this will prevent search crawlers from finding the page, but you can verify that the listing details page is adding the "meta" tag on closedlistings.
Go to the /listings/[id] page of an open listing. You should not see the new meta tag in the
Go to the /listings/[id] page of a closed listing. You should see the new meta tag in the
Go to the /listings/[id] page of a draft listing. You should not see the new meta tag in the
Author Checklist:
Added QA notes to the issue with applicable URLs
Reviewed in a desktop view
Reviewed in a mobile view
Reviewed considering accessibility
Added tests covering the changes
Made corresponding changes to the documentation
Ran yarn generate:client and/or created a migration when required
Review Process:
Read and understand the issue
Ensure the author has added QA notes
Review the code itself from a style point of view
Pull the changes down locally and test that the acceptance criteria is met
Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing that Google deprios re-indexing pages it once saw have noindex and it could take up to 90 days for it to automatically re-scan and then start indexing again. Is that a concern?
@emilyjablonski ope, I didn't mean to add the "1 review needed" as this is not ready. I'm waiting to get confirmation from product on how to proceed as the ticket is still getting created. Sorry!
ludtkemorgan
changed the title
fix: hide closed and draft listings from crawlers
fix: hide closed listings from crawlers
Sep 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do not mergeThis PR is not ready to be merged. Do not merge even if it has the needed approvals
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses metrotranscom#1438
Description
When searching for a listing on google non-open listings can be shown. This is not ideal if a listing is still in draft or a listing has been duplicated and the older posting is showing higher in the search results.
Since it can be a long time between google picking up a change from the meta tags it has been determined to only add this to the closed listings as those should normally not be re-opened whereas a draft listing could become open at any time
How Can This Be Tested/Reviewed?
You can't test if this will prevent search crawlers from finding the page, but you can verify that the listing details page is adding the "meta" tag on closedlistings.
Author Checklist:
yarn generate:clientand/or created a migration when requiredReview Process: