-
Notifications
You must be signed in to change notification settings - Fork 29
DOCSP-31844: redirect all v1.x to current homepage #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-31844: redirect all v1.x to current homepage #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless someone mentioned otherwise, I think the v1.x redirects that were removed in this PR should be added back and redirect to ${base}/current/. They may be bookmarked or linked from somewhere else, so this change would avoid 404s for some 1.x links, but not all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identified an issue, but otherwise LGTM.
config/redirects
Outdated
[v2.0-*]: ${prefix}/${version}/aggregation-framework -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/examples -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/replica-sets -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/read-preference -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/write-concern -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/bulk-write-operations -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/authentication-examples -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/gridfs -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/tailable-cursors -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/web-examples -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/faq -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/style-guide -> ${base}/${version}/quick-start/ | ||
[v2.0-*]: ${prefix}/${version}/credits -> ${base}/${version}/quick-start/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue:
I think this redirects to a redirect for v2.15 and later (see lines 139 and 163).
Suggestion:
- Remove line 163 (redundant with 139)
- Change these to apply only to [v2.0-v2.14]
- For [v2.15-*], add entries for the source urls (left of the arrow) and redirect to the base directory. Although there are some better pages to redirect to, I think it should be sufficient and it seems unnecessary to redirect to the quick start instead of the top level-page.
JIRA - https://jira.mongodb.org/browse/DOCSP-31844
Can't test staging, but here are the mut output for the new redirects: