-
Notifications
You must be signed in to change notification settings - Fork 6.8k
redirecting navigation items to latest info #12540
redirecting navigation items to latest info #12540
Conversation
@lupesko - please review. |
Thanks @aaronmarkham
|
@sandeep-krishnamurthy thanks for the feedback. I add clarifications to the description above in a Stats section and a Details on Each Change section.
Basically users are only allowed to browse versions on the API pages. For tutorials I think each one should be tested back through versions and then labelled to what their minimum version is. But since we don't test the old versions now, I think it is better that we don't display them. For your UX flow here, which I think would be quite rare, but we could send them to a page where they get the option to continue to the old broken info, or go to the new stuff.
Yes! But apparently it wasn't that easy last time when Krishnan tried. I'd like to tackle that next. But at least with this, people aren't going to bad/incorrect/non-working info or tutorials!
It's always done that. Really annoying. That should be fixed too though (or moot if we get the versions just working right within the API section. Next PR? |
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.
Thanks for the details Aaron.
I agree, this is very useful for many users. This is an important fix.
Also, like you pointed out, we have a bad user experience on going to landing page on a version select and not intuitive that only API is versioned. We should try to quickly follow up on that.
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.
Looks good, my only concern is around the ONNX part, since this is an API.
RewriteRule ^versions/[^\/]+/gluon/.*$ /gluon/ [R=301,L] | ||
RewriteRule ^versions/[^\/]+/install/.*$ /install/ [R=301,L] | ||
RewriteRule ^versions/[^\/]+/tutorials/.*$ /tutorials/ [R=301,L] | ||
RewriteRule ^versions/[^\/]+/api/python/contrib/onnx.html /api/python/contrib/onnx.html [R=301,L] |
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.
ONNX is an API. Why don't we want to allow someone with an older version of MXNet to see ONNX API for that version?
I updated this to be like the Clojure redirects, so that any navbar selection going to ONNX on a version that didn't exist will go to the API error page. |
* redirecting navigation items to latest info * adjust onnx redirects based on version
Description
The website's different versions show people old and sometimes inaccurate info. This PR redirects traffic to old version content to the latest info.
API docs traffic is unaffected. Although I redirect ONNX to the latest.
It should combine nicely with the other htaccess redirects for Clojure and error documents that I have in #12426.
Stats
~3% of site traffic coming from search goes directly to old pages. 5 out of the top 10 of these pages are old installation info. These will all get redirected, helping hundreds of users per week get to the right info!
Detail on Each Change
Architecture - why would someone want to read about MXNet's architecture from v0.11.0? The differences may be minor and these pages are not maintained across versions. There's no reflection on differences that might have occurred over time, their trade-offs or benefits, or anything helpful. Usually it's going to be someone coming in from a search result.
Community - there is no benefit in showing someone old info about how to engage with the community. The old info is most likely inaccurate.
FAQ - again, people are coming off of search results. Giving someone a how-to on the things used to work, is likely going to give them a bad experience.
Gluon - an informational set of pages like these should be up-to-date and not versioned.
Install - this page has a versions dropdown and the collection of pages tell you how to install MXNet today. No one maintains the old branches' install pages. They're probably wrong.
Tutorials - no one maintains the tutorials or tests the tutorials in the old branches. Why let people get frustrated with tutorials that don't work?
ONNX - it's so new and changing that giving people the old info is just a bad idea. It won't work.
Preview
Browse around the old versions on http://34.201.8.176/
If you try to hit any of the main nav items like FAQ, Gluon, Architecture, Tutorials, etc you get redirected to the latest version automatically.
Comments
This gets us even closer to not needing the versions in the main nav and only using it in the API docs and the install page (where we have it already).