feat(noIndex): applying noIndex to /partner pages
Build Variables:
-
Use Contentful Preview API
Summary:
This merge request updates the microsite pages to include the noindex directive in their metadata. This ensures that these pages are not indexed by search engines, preventing them from appearing in search results.
Changes:
-
asyncData Method: Updated the asyncData method to set
metadata.noindex = true
for the microsite pages. -
head Method: Modified the head method to include the noindex attribute in the page metadata by setting
noindex: true
in the metadata object.
Testing:
1.Navigate to a /partner page.
2.Inspect the page source and ensure the noindex attribute is present in the metadata.
related to: #3808 (closed)
Affected URLs
Production | Review app |
---|---|
https://about.gitlab.com/ | WIP |
Step 2: Ensure that your changes comply with the following, where applicable:
-
I, the Assignee, have run Axe tools on any updated pages, and fixed the relevant accessibility issues. -
These changes work on both Safari, Chrome, and Firefox. -
These changes have been reviewed for Visual Quality Assurance and Functional Quality Assurance on Mobile, Desktop, and Tablet. -
These changes work with our Google Analytics and SEO tools. -
These changes have been documented as expected.
Step 3: Ensure that your changes don't cause regressions on key pages, where applicable:
Edited by Miracle Banks