[docs] add trailing slash to pathname
so resolved URL matches the canonical
#8228
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.
Launch Checklist
This PR updates the metadata
pathname
on several pages to have a trailing slash.To illustrate:
https://docs.mapbox.com/mapbox-gl-js/api
redirects tohttps://docs.mapbox.com/mapbox-gl-js/api/
canonical
URL (which is set bypathname
) must match the resolved URL which has a trailing slash.This will fix an issue with Mapbox GL JS pages that are not being indexed by our search provider.
You can test this PR by making sure the pages updated in this PR have a trailing slash in the
canonical
tag: